"End of file error"
"End of file error"
- Subject: "End of file error"
- From: ScaryFish <email@hidden>
- Date: Sat, 30 Dec 2000 09:01:48 +1300
My script needs to be able to read from and write to a simple text file. I
open the file for access and read the contents using:
open for access file "Hosts" of folder "Preferences" of folder "System
Folder" of startup disk
copy the result to thehostsfile
read thehostsfile
The wierd bit is once the script runs once ( My script also writes to the
file and sets the eof the file) and try to run again I get "Finder got an
error:End of file error".
The wierd bit is if I open the text file in simpletext, type a space, delete
the space and save it, then the script will run fine again. Once. If I
save the script as an application, it never works. Always gets "End of file
error"
Does setting the eof file somehow corrupt it to being opened by the script
again?
Please help.
Jason.