Lesson 25: Files — writing with fopen & fprintf
All our variables live in memory — and the moment the program ends, they vanish. Files solve this: data written to a file stays on disk even after the program closes. FILE *f = fopen("data.txt", "w"); opens a file for writing, and you MUST check that it didn't return NULL (bad path or missing permis