How do you make a C program save a file that it can access later even after restarting the program?
Printable View
How do you make a C program save a file that it can access later even after restarting the program?
Save
fopen + fprintf
Load
fopen + fscanf
or
Save
fopen + fwrite
Load
fopen + fread
Go look them up in your manual pages (or on the interwebs)
Thanks