Normally "unexpected end of file" means that the number of values that you are asking an AMPL "read" command to read from a file is greater than the number of values in the file. As a result, the "read" command reaches the end of the file before it is done. This is a normal error message indicating that there is an error in the command or there is not enough data in the file.
There was a bug that caused "unexpected end of file" appeared to appear even though the command and the file were correct, but that bug was fixed many years ago. If you can post some files that can enable us to reproduce the situation where you see this message, however, then we may be able to determine why you are having this issue.
Bob Fourer
am...@googlegroups.com
=======
=======