If the last operation on a file was a write, a read operation may not directly follow.
The read operation fails.
Invoke fflush(), rewind(), fseek(), or fsetpos() between the write and read operations on the file stream.
EDC4SE