[squeak-dev] opening a write-only file

Douglas McPherson djm1329 at san.rr.com
Sat May 31 17:00:06 UTC 2014


Is there a way to open a write-only file in Squeak? On both Mac and Linux attempting to open such a file fails.

For example, if you create a write-only file, i.e. in a shell, after cd to default directory

echo nada > foo
chmod 200 foo

Then from Squeak

StandardFileStream fileNamed: 'foo'

returns nil.

If the file is given read permission (i.e. chmod 600 foo) then Squeak can open it.

Anyone know a workaround?

Thanks,
Doug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140531/cc3ddcd1/attachment.htm


More information about the Squeak-dev mailing list