or strings and widestrings.

Stef
On Sep 13, 2011, at 4:11 PM, Alexandre Bergel wrote:

> Looks like there is a confusion between binary and text stream
> 
> Alexandre
> 
> On 13 Sep 2011, at 11:09, Stéphane Ducasse wrote:
> 
>> | working stream |
>> working := FSFilesystem disk workingDirectory.
>> stream := (working / 'foo.txt') writeStream.
>> stream nextPutAll: 'Hello World'.
>> stream close.
>> stream := (working / 'foo.txt') readStream.
>> stream contents.             
>>      returns 
>>      #[72 101 108 108 111 32 87 111 114 108 100]
>> 
>> instead of 'Hello World'
>> 
>> Does anybody have a fix..?
>> 
>> Stef ( editing FS chapter).
>> 
> 
> -- 
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> 
> 
> 
> 
> 
> 


Reply via email to