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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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 Path: g2news1.google.com!news1.google.com!news2.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Text_IO from a stream Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH 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> <47f14f8c_2@news.bluewin.ch> Date: Tue, 1 Apr 2008 09:49:59 +0200 Message-ID: NNTP-Posting-Date: 01 Apr 2008 09:49:59 CEST NNTP-Posting-Host: b1df043a.newsspool4.arcor-online.net X-Trace: DXC=EU2Z?iR7D>g:i=48;n?Z:`4IUKbnBKiUoYINaf[6LHn;2LCVn7enW;^6ZC`dIXm65S@:3>oAH_3W>7AZ On Mon, 31 Mar 2008 22:54:35 +0200, Gautier wrote: > Dmitry A. Kazakov: > > Meanwhile (#ada irc...) there seems to be a nice solution: > > http://jesselang.com/software/streams_text_io/ Yes. >>> 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. No, I meant your idea of a text-oriented stream. So Float'Write would put Float in a human-readable format (instead of Put). But of course, a binary transfer is always preferable. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de