write as list doesn't work in OS 9.1
write as list doesn't work in OS 9.1
- Subject: write as list doesn't work in OS 9.1
- From: cris <email@hidden>
- Date: Sat, 09 Dec 2000 20:36:08 +0100
I wonder if anyone can confirm that the following doesn't work in OS 9.1:
"write as list" destroys the file with random garbage!
-----
set CF to "Mac HD:test"
try
set FileRef to open for access file CF with write permission
set eof FileRef to 0
write {"foo", 22} as list to FileRef
--> should write: list TEXT foolong
-- but writes random garbage
close access FileRef
open for access file CF
set temp to read file CF as list -- out of memory
close access file CF
on error errm number errn
close access FileRef
end try
-----
Greetings
cris