From: pamela.lum@gmail.com
Subject: Newbie Question: using Text_IO.Open() to read from standard input
Date: 12 Oct 2005 17:49:17 -0700
Date: 2005-10-12T17:49:17-07:00 [thread overview]
Message-ID: <1129164557.586640.154480@g14g2000cwa.googlegroups.com> (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
next reply other threads:[~2005-10-13 0:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-13 0:49 pamela.lum [this message]
2005-10-13 1:30 ` Newbie Question: using Text_IO.Open() to read from standard input 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox