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 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-05 08:01:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!luth.se!news-stob.telia.net!telia.net!194.22.194.4.MISMATCH!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: Bj�rn Persson Newsgroups: comp.lang.ada Subject: Re: Can I treat Current_Output as a file of bytes? Message-ID: <20021105170130.2684e53f.bjorn_persson.spam-is-evil@sverige.nu> References: <20021104233454.2042ef78.bjorn_persson.spam-is-evil@sverige.nu> <4519e058.0211050630.7eb31354@posting.google.com> 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: Tue, 05 Nov 2002 16:01:31 GMT NNTP-Posting-Host: 213.64.50.193 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1036512091 213.64.50.193 (Tue, 05 Nov 2002 17:01:31 CET) NNTP-Posting-Date: Tue, 05 Nov 2002 17:01:31 CET Organization: Telia Internet Xref: archiver1.google.com comp.lang.ada:30385 Date: 2002-11-05T16:01:31+00:00 List-Id: On 5 Nov 2002 06:30:59 -0800 dennison@telepath.com (Ted Dennison) wrote: > Bj rn Persson wrote in message >news:<20021104233454.2042ef78.bjorn_persson.spam-is-evil@sverige.nu>... > > 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 > > Supposedly, that's what Ada.Text_IO.Text_Streams is there for (see > A.12.2(6) - http://www.adaic.org/standards/95lrm/html/RM-A-12-2.html > ). I've never tried writing binary data to Standard_Output myself > though, so I can't say how/if it works. Hmm, I didn't try that because I assumed that it would write through the usual Standard_Output, and so the line break would be added anyways, but maybe I should give it a try. Bj�rn Persson