Need Assistance?

support@tutorialshub.in

File Handling in C

Binary File I/O (fread & fwrite)

ADVERTISEMENT
C Programming Free Lesson
5 min read
ADVERTISEMENT

Save raw structs directly to disk using fwrite(&rec, sizeof(rec), 1, fp) and read them back with fread().

ADVERTISEMENT
Hi, I'm Tuby! Here to help you