rewind the file to the begining