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-Language: ENGLISH,ASCII X-Google-Thread: 103376,7ae711c481a7059 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-05 10:18:31 PST Message-ID: <3DC80A67.4070607@cogeco.ca> From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Can I treat Current_Output as a file of bytes? References: <20021104233454.2042ef78.bjorn_persson.spam-is-evil@sverige.nu> <4519e058.0211050630.7eb31354@posting.google.com> <20021105170130.2684e53f.bjorn_persson.spam-is-evil@sverige.nu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Date: Tue, 05 Nov 2002 13:13:59 -0500 NNTP-Posting-Host: 198.96.47.195 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1036520039 198.96.47.195 (Tue, 05 Nov 2002 13:13:59 EST) NNTP-Posting-Date: Tue, 05 Nov 2002 13:13:59 EST Organization: Bell Sympatico Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Xref: archiver1.google.com comp.lang.ada:30394 Date: 2002-11-05T13:13:59-05:00 List-Id: Bj�rn Persson wrote: > 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 You should also be aware from A.12.2.(7) that "Performing operations on the stream associated with a text file does not affect the column, line, or page counts." -- Warren W. Gay VE3WWG http://home.cogeco.ca/~ve3wwg