[Newbies] Speed

Yoshiki Ohshima yoshiki at vpri.org
Mon Nov 16 01:56:14 UTC 2009


At Sun, 15 Nov 2009 14:17:41 +0100,
Bert Freudenberg wrote:
> 
> Instead of the abstract FileStream use the stream class you want explicitly. StandardFileStream is the old class that does no conversion. So you would open your file like this instead:
> 
> 	StandardFileStream readOnlyFileNamed: myFileName

  Alternatively, if it is reading the entire file knowing that it is
not encoded, you can say:

(FileStream readOnlyFileNamed: myFileName) binary contentsOfEntireFile asString

-- Yoshiki


More information about the Beginners mailing list