To ensure that the file is back at the beginning (and a subsequent read on the file will work as expected).
The read changes the state of the file. Working with these files is unfortunately not anywhere near ideal.