comp.lang.ada
 help / color / mirror / Atom feed
* Newbie Question: using Text_IO.Open() to read from standard input
@ 2005-10-13  0:49 pamela.lum
  2005-10-13  1:30 ` Anh Vo
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: pamela.lum @ 2005-10-13  0:49 UTC (permalink / raw)


Hi,

I need to open a file that is passed to my ada executable as standard
input, in the following fashion:

./myprogram < inputfile.txt

My question is: How can i get the Open() function to open a file from
standard input so that I can bypass using a static file name? For
example:

Integer_File : FILE_TYPE;
Open(Integer_File, In_File, "inputfile.txt"); <-- don't open
inputfile.txt, open file from standard input instead

I know that this can be done easily with Ada.Text_IO.Text_Streams,
however I am stubborn and curious to see if there is a simple and easy
way to do it with the Open() function.

THanks




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-10-13 16:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-13  0:49 Newbie Question: using Text_IO.Open() to read from standard input pamela.lum
2005-10-13  1:30 ` Anh Vo
2005-10-13  1:48   ` pamela.lum
2005-10-13  1:56     ` Anh Vo
2005-10-13 16:14     ` Martin Krischik
2005-10-13  1:58 ` tmoran
2005-10-13  2:02   ` pamela.lum
2005-10-13  2:19     ` Anh Vo
2005-10-13  5:26   ` Jeffrey R. Carter
2005-10-13  6:53     ` tmoran
2005-10-13  3:15 ` Steve

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