More File Performance Q.?
Ned Konz
ned at bike-nomad.com
Thu May 16 05:58:48 UTC 2002
On Wednesday 15 May 2002 10:20 pm, Jimmie Houchin wrote:
> Due to the requirement of reading each line to operate on it I had
> to change from StandardFileStream to CrLfFileStream.
Why can't you read each line with a StandardFileStream?
theLine _ myStream upTo: Character lf.
Or whatever your line endings are. I assume if this is a standard Unix
mbox file, they're linefeeds.
If you're on a more primitive operating system where they need two
characters (say CR/LF) to represent one line ending, then you could
do this:
theLine _ myStream upTo: Character cr.
myStream next.
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|