Can't read text file from 0
Can't read text file from 0
- Subject: Can't read text file from 0
- From: Matthew Broms <email@hidden>
- Date: Thu, 16 Aug 2001 15:42:21 -0400
I wrote a script on my machine that attempts to read a file starting at 0
verses 1. When I sent the end user the script for use in production, their
machine would error out on on this call.
set theBegin to 0
set openFile to open for access file myTextFile
set rawData to read openFile from theBegin to eof
After a lengthy search for this inconspicuous problem, I just changed the
value to 1 and it worked fine for my end user. Strangely enough though,
both 0 or 1 worked on two systems here successfully with the same results
and never an error. All parties are using 9.1 and AS 1.6. Obviously I've
determined a fix, but these inconsistencies don't sit well with me.
Matt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~