I fixed the code (below) and now the input file won't open for reading (in the menu section, when it's read to the screen).... I can't figure this out for the life of me why it's doing this, especially since the file is closed earlier. Any thoughts?

Running back Emmitt Smith is 473 rushing yards shy of breaking Walter Payton's record of 16,726 yards,
which has stood since 1987, three years before Smith began his NFL career.
"I'm going to handle it like a champ," said Smith of his pursuit.
"I'm going to handle it with respect and handle it with dignity."

02-26-2005

Shakti

try to add this after you close a file:

Code:

yourActualFileStream.clear();

02-26-2005

Xanth

Ah, I get it now.... When the file reaches EOF, it sets an EOF flag, and clear gets rid of that flag, making it possible to open the file again.