From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,479138db2311e415,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail From: pamela.lum@gmail.com Newsgroups: comp.lang.ada Subject: Newbie Question: using Text_IO.Open() to read from standard input Date: 12 Oct 2005 17:49:17 -0700 Organization: http://groups.google.com Message-ID: <1129164557.586640.154480@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: 24.108.52.26 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1129164563 8432 127.0.0.1 (13 Oct 2005 00:49:23 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 13 Oct 2005 00:49:23 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g14g2000cwa.googlegroups.com; posting-host=24.108.52.26; posting-account=Wyy6RQ0AAABE7ZEfOphhDPPcqZqmHzC5 Xref: g2news1.google.com comp.lang.ada:5568 Date: 2005-10-12T17:49:17-07:00 List-Id: 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