• 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
End of file error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

End of file error


  • Subject: End of file error
  • From: Paul Berkowitz <email@hidden>
  • Date: Mon, 15 Jan 2001 22:56:52 -0800

It seems that when a text file is completely blank, and you open it for
access and try to read it, you get an "end of file error" which can mess up
a script unless you trap it. Are there other circumstances which result in
this same error, or can it be assumed that a file is always empty? I think a
file length greater than 32K would also do it, yes? That can be tested for,
too. Anything else?

I see that Akua's 'read data from' correctly gives the result as "", rather
than an error. So perhaps it would be better to use this here.

--
Paul Berkowitz


  • Follow-Ups:
    • Re: End of file error
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Variable names on the fly?
  • Next by Date: scripting the Script Editor
  • Previous by thread: Re: Variable names on the fly?
  • Next by thread: Re: End of file error
  • Index(es):
    • Date
    • Thread