if you post the file access code we can better see the problem.
Unexpected end of file could be because you are attempting to read past the end of the file. For example if there are 100 items in your file and your code is trying to read 101 items from it youve got a problem
try adding an eof evaluator to the end of the loop, ie:
this will repeat until the end of data.
Alternatively if using a for next..
Unexpected end of file could be because you are attempting to read past the end of the file. For example if there are 100 items in your file and your code is trying to read 101 items from it youve got a problem
try adding an eof evaluator to the end of the loop, ie:
file=readfile("name.dat") repeat whatever = read{line/byte/int/float} (file) until eof(file)
this will repeat until the end of data.
Alternatively if using a for next..
for .... if not eof(file) whatever= readline(file) else exit endif next