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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,7ae711c481a7059,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-04 14:35:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed.stueberl.de!news-stob.telia.net!telia.net!194.22.194.4.MISMATCH!masternews.telia.net.!newsc.telia.net.POSTED!not-for-mail From: Bj�rn Persson Newsgroups: comp.lang.ada Subject: Can I treat Current_Output as a file of bytes? Message-ID: <20021104233454.2042ef78.bjorn_persson.spam-is-evil@sverige.nu> X-Newsreader: Sylpheed version 0.5.0 (GTK+ 1.2.10; i386-redhat-linux) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Mon, 04 Nov 2002 22:34:52 GMT NNTP-Posting-Host: 213.64.50.193 X-Complaints-To: abuse@telia.com X-Trace: newsc.telia.net 1036449292 213.64.50.193 (Mon, 04 Nov 2002 23:34:52 CET) NNTP-Posting-Date: Mon, 04 Nov 2002 23:34:52 CET Organization: Telia Internet Xref: archiver1.google.com comp.lang.ada:30367 Date: 2002-11-04T22:34:52+00:00 List-Id: Hi everyone, here's another beginner having problems with Ada.Text_IO. Please excuse me if this is a frequently asked question. I couldn't find it in the collection at http://www.adahome.com/FAQ/comp-lang-ada.html. I'm writing a little program that reads from standard in and writes to standard out, but I'd need to treat them as raw files of bytes or characters, and Text_IO's line-oriented features get in my way. When reading I can get around it by using Get_Immediate, but I can't get rid of the extra line break that is written to standard out when the program terminates if the last character written wasn't a line break. Can I get full control over standard out without doing all the output by calling C functions? The extra line break isn't a big deal when writing to a terminal window, but it's worse when standard out is redirected to a file. Bj�rn Persson