• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reading and writing records
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

On 8/26/07, Michelle Steiner <email@hidden> 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?
-- 
Mark J. Reed <email@hidden>

Isn't that what shane wrote yesterday? Or did I miss the point? 


On 25/08/2007, at 12:38 AM, Shane Stanley wrote:
On 24/8/07 11:33 PM, "Chris" <email@hidden> wrote:

And how do you check for eof?

Use a try; you'll get an error if you try to read past the end.

-- 
Shane Stanley <email@hidden>
<http://scriptingmatters.com/aspro>



 _______________________________________________
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

  • Follow-Ups:
    • Re: Reading and writing records
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Reading and writing records (From: has <email@hidden>)
 >Re: Reading and writing records (From: Chris <email@hidden>)
 >Re: Reading and writing records (From: Philip Aker <email@hidden>)
 >Re: Reading and writing records (From: Chris <email@hidden>)
 >Re: Reading and writing records (From: Philip Aker <email@hidden>)
 >Re: Reading and writing records (From: Chris <email@hidden>)
 >Re: Reading and writing records (From: Michelle Steiner <email@hidden>)
 >Re: Reading and writing records (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Reading and writing records
  • Next by Date: Re: Reading and writing records
  • Previous by thread: Re: Reading and writing records
  • Next by thread: Re: Reading and writing records
  • Index(es):
    • Date
    • Thread