The same file pointer is used elsewhere to read file contents. So, it's better that the function leaves it in an initial read state.