?? Attempt to read past eof ??
Author |
Message |
unpiledacorn
|
Posted: Fri Apr 28, 2006 7:54 am Post subject: ?? Attempt to read past eof ?? |
|
|
Could some1 please explain to me what "attempt to read past eof is suppose to mean, n possible ways to solve it in a array pogram. ![Very Happy Very Happy](http://compsci.ca/v3/images/smiles/icon_biggrin.gif) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
codemage
![](http://usera.imagecave.com/codemage/codemage-small.gif)
|
Posted: Fri Apr 28, 2006 8:32 am Post subject: (No subject) |
|
|
past eof means that you're reading data in from a file, you get to the end of the file... and then you keep trying to read more data.
You need to do an
exit when eof (datafile id)
so that you stop getting input when there's none left to get. |
|
|
|
|
![](images/spacer.gif) |
|
|