[Pharo-project] readonly status conflict with reading

Levente Uzonyi leves at elte.hu
Sat Oct 9 09:48:21 EDT 2010

On Sat, 9 Oct 2010, Stéphane Ducasse wrote:

> Hi john
> When I set on mac a file to readonly, I get nil when I do
> FileStream named: 'foo.txt'

I guess that's #fileNamed:, not #named:. When you send that method, you're 
trying to open the file in read-write mode. If you just want to read from 
a file then use #readOnlyFileNamed:.


> Stef
> _______________________________________________
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

More information about the Pharo-dev mailing list