I assume you are closing the file properly before you attempt to read the file again?