Hi Doru

The last time I used FS that was the way to do it. 
Maybe what you want could be accomplished by adding convenience methods to 
FSReadStream like #stringContents or something. Anyway, I agree with Norbert 
that a ByteArray is really the data structure that you should expect to get 
from a file.

Cheers,
Max


On 17.11.2011, at 22:01, Tudor Girba wrote:

> Hi,
> 
> I am using Filesystem, and I would like to get a read stream that provides a 
> string instead of bytes.
> 
> If I do "aReference readStream", I get a FSReadStream which is a byte stream.
> 
> To get to the string, I now do the ugly: "aReference readStream contents 
> asString"
> 
> Is there a cleverer way?
> 
> Cheers,
> Doru
> 
> 
> --
> www.tudorgirba.com
> 
> "What we can governs what we wish."
> 
> 
> 
> 


Reply via email to