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,6c383a046f41e91 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 31 Mar 2008 22:54:35 +0200 From: Gautier User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Text_IO from a stream References: <0465edf8-7272-43c8-82fd-fcae7cf0ef11@y21g2000hsf.googlegroups.com> <1y2oi69ev939v.1xugoel9fadnb$.dlg@40tude.net> <0c9ab8b7-a666-4fd2-a876-dca818ad5461@c65g2000hsa.googlegroups.com> <17unr8ffxzcm.1ee1ucd0fwd1q$.dlg@40tude.net> <47f138b6$1_5@news.bluewin.ch> <1rmypswe6uyhs.10fy5p7ytb4os$.dlg@40tude.net> In-Reply-To: <1rmypswe6uyhs.10fy5p7ytb4os$.dlg@40tude.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 83.76.158.99 X-Original-NNTP-Posting-Host: 83.76.158.99 Message-ID: <47f14f8c_2@news.bluewin.ch> X-Trace: news.bluewin.ch 1206996876 83.76.158.99 (31 Mar 2008 22:54:36 +0200) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news1.google.com!news4.google.com!news.germany.com!news-zh.switch.ch!switch.ch!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news1.google.com comp.lang.ada:20688 Date: 2008-03-31T22:54:35+02:00 List-Id: Dmitry A. Kazakov: > Yes, but will that be ASCII-encoded? And it has somehow invent lines and > pages. Sure, it is indeed a zip-archived text file that I intend to read through UnZip.Streams. Meanwhile (#ada irc...) there seems to be a nice solution: http://jesselang.com/software/streams_text_io/ ... >> Well, I think I'll switch to a binary format... > > I would do that too. Also I would override 'Read and 'Write in order to > make it platform-independent. (Stream_Element should be replaced by > octets.) No problem with that - there is already a framework in that package (for other files) that sends things byte-per-byte in a deterministic endianess; floats are split/merged with certain a Float_portable_binary_transfer package. Thanks for the help! ______________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/index.htm Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!