Posted by oz on November 11, 2001 at 18:35:12:
In Reply to: reading vehicle data eof posted by Glick on November 11, 2001 at 15:01:14:
: for reading each set of data (license, manufacturer, model, year) in to their own arrays, i planned on using 4 different functions, using the eof member function reading to the end of the file. however, after reading to the end of the file, im assuming the stream is then useless for the other functions. Is there a way to reset the stream for the other functions to use the same stream? stream.clear(); ?
why not save yourself the trouble and use one function to read the data into the arrays? it will save you time in writing the code and finding errors if there are any.
Post a Followup