comp.lang.ada
 help / color / mirror / Atom feed
From: Marius Amado Alves <amado.alves@netcabo.pt>
To: comp.lang.ada@ada-france.org
Subject: Re: SEQUENTIA_IO and stdin/stdout (Standard_Input, Standard_Output)
Date: Tue, 14 Oct 2003 16:45:39 +0000
Date: 2003-10-14T16:45:39+00:00	[thread overview]
Message-ID: <mailman.80.1066149976.25614.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <Zvi7Q39arxzY@eisner.encompasserve.org>

On Tue, 2003-10-14 at 14:29, Larry Kilgallen wrote:
> > I came from C world and brought the question: how I can open stdin or
> > stdout as a SEQUENTIAL file?
> 
> Parameterless function Text_IO.Standard_Input returns a value of File_Type.
> 
> Function Text_IO.Name takes a value of File_Type as a parameter and returns
> the name of the corresponding file.

Are you suggesting the trick of finding out the name of Standard_Output
(say) and then open a sequential file with that name? Sounds clever, but
unfortunately it doesn't work. See my previous reply (actually a
forward) for a 'proper' solution to this problem.




  reply	other threads:[~2003-10-14 16:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-14 12:44 SEQUENTIA_IO and stdin/stdout Lo Shu
2003-10-14 14:29 ` SEQUENTIA_IO and stdin/stdout (Standard_Input, Standard_Output) Larry Kilgallen
2003-10-14 16:45   ` Marius Amado Alves [this message]
2003-10-14 20:36     ` Robert I. Eachus
2003-10-14 23:11     ` Larry Kilgallen
2003-10-14 23:11       ` Marius Amado Alves
2003-10-15  4:32         ` Larry Kilgallen
2003-10-15 17:23           ` Marius Amado Alves
2003-10-17 13:41             ` Frank J. Lhota
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox