Re: Reading and writing records
Re: Reading and writing records
- Subject: Re: Reading and writing records
- From: Wayne Melrose <email@hidden>
- Date: Sun, 26 Aug 2007 17:46:05 +0200
On 26/08/2007, at 5:40 PM, Mark J. Reed wrote: Get eof before you start reading and store it in a variable. Then before each read, get eof and compare it to the stored variable.
That seems a little clunky, and potentially erroneous in the face of concurrent file access.
I'm a little confused by the question. Doesn't AS throw an exception if you try to read when you're at EOF? -- Isn't that what shane wrote yesterday? Or did I miss the point?
On 25/08/2007, at 12:38 AM, Shane Stanley wrote:
And how do you check for eof?
Use a try; you'll get an error if you try to read past the end.
--
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden