comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier <gautier@fakeaddress.nil>
Subject: Re: Text_IO from a stream
Date: Mon, 31 Mar 2008 22:54:35 +0200
Date: 2008-03-31T22:54:35+02:00	[thread overview]
Message-ID: <47f14f8c_2@news.bluewin.ch> (raw)
In-Reply-To: <1rmypswe6uyhs.10fy5p7ytb4os$.dlg@40tude.net>

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!



  reply	other threads:[~2008-03-31 20:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-31 15:27 Text_IO from a stream gautier_niouzes
2008-03-31 15:49 ` Dmitry A. Kazakov
2008-03-31 16:05   ` gautier_niouzes
2008-03-31 16:33     ` Dmitry A. Kazakov
2008-03-31 19:17       ` Gautier
2008-03-31 19:47         ` Dmitry A. Kazakov
2008-03-31 20:54           ` Gautier [this message]
2008-04-01  7:49             ` Dmitry A. Kazakov
2008-04-01 20:49           ` Simon Wright
2008-04-02  7:36             ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox