logo       

Re: binary streams, how to: msg#00123

lang.smalltalk.squeak.beginners

Subject: Re: binary streams, how to

Hi Petr,

on Mon, 23 Oct 2006 00:02:28 +0200, you wrote:
Hi,

which methods shall I use for binary (fast) reads/writes to file
(stream)?
I need to write Boolean (1byte), Integers (4 or 8 bytes), Floats (?) and
Strings into big files, but standard way via storeOn: (text
representation) is inefficient for me.

You may want to look into the #'data get/put' messages category of PositionableStream, implementors of #int32: then alt-B

/Klaus

Thanks, pf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise