Re: erratic EOF encountered when reading in similar data [message #44699] |
Wed, 13 July 2005 10:49 |
Y.T.
Messages: 25 Registered: December 2004
|
Junior Member |
|
|
Only generic ideas: how about DOS vs UNIX file types, where the one
might not recognize the line-end character of the other?
Before your EOF line, could you put something like
if EOF(lun1) then stop, "oops"
and then examine the last line of "header" to see whether it might be
different from what you expect? Something like
print,byte(header[9])
and then make sure it's as long as you thought and has the right couple
characters at the end?
I'd like to note that "DATA' appears to be as long as your data set, so
using "while" doesn't really look to me as if it made sense. You really
only ever want to read the array once, right?
cordially
Y.T.
--
Remove YourClothes before you email me.
|
|
|