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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,80db17e67d938b1f,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!statler.nntpserver.com!newsfeed.arcor.de!news.arcor.de!not-for-mail Newsgroups: comp.lang.ada Subject: plain Ada streams with Windows(TM) From: Georg Bauhaus Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: # Message-ID: <1146533046.9010.38.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Date: Tue, 02 May 2006 03:24:07 +0200 NNTP-Posting-Date: 02 May 2006 03:23:32 MEST NNTP-Posting-Host: 5eac5594.newsread4.arcor-online.net X-Trace: DXC=0n^9>JM0>[=OjE[7VlJ2<0:ejgIfPPld4jW\KbG]kaM8]kI_X=5Kea6;_\>]9FR:g2hP3YJKgE\j Hello, for a Windows console application using only plain Ada, is there a way to open standard input/output using Stream_IO.Open, but not using Text_Streams? [*] I have been trying open(f, In_File, "CONIN$"); However, this seems to tie input to the console buffer, i.e., redirected or piped input to my program doesn't come in. (Besides, the SDK docs say I have to open shared. A Form string is not supported by one of the Ada implementations I have, AFAICS.) The UNIX equivalent (or so I thought) open(f, In_File, "/dev/stdin"); works well (with a GNU/Linux system). Is there a way out, or will I have to write my own stream? (for a small free software tool, actually.) [*] Different implementations of Text_IO.Text_Streams, and in particular Wide_Text_IO.Text_Streams, seem to have some problems. Being twice as slow as Stream_IO (GNAT) is a minor one. GNAT writes characters not requested when creating a new stream/file. I find this puzzling (Is this correct?). Wide_Text_IO.Text_Streams is not working, really, in OA and hence not an option, obviously. -- Georg