Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 ?? Attempt to read past eof ??
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
unpiledacorn




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
codemage




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: