But then indeed, calls to fseek() can be confusing. I usually write my own string functions for correct parsing and text formatting to prevent confusing myself.

I'm not even going to try to set the _fmode because I'd probably forget it when compiling on other computers.

However, I'm still interested in how to set it? Is it an environment variable?