Read - testing for EOF
Read - testing for EOF
- Subject: Read - testing for EOF
- From: Chap Harrison <email@hidden>
- Date: Mon, 19 Jan 2004 19:52:44 -0600
How do you know when you've reached EOF when reading a file
sequentially, record by record?? (using Standard Additions read)
Reading when at EOF seems to *usually* throw an error, which can be
caught in a try... on error block, but it doesn't seem to be
dependable. Sometimes it returns the final record twice before
throwing the error; sometimes it returns a null record infinitely.
Thanks,
Chap
PS - Am I missing a vital documentation resource? Please let me know -
I can't believe I'm having such a hard time finding answers to these
simple questions myself. :-(
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.