Rewind the file before trying to read it