But it is written everywhere that w+ opens file for both - writing AND reading.
https://www.cprogramming.com/tutorial/cfileio.html

Where is the catch?