





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Lecture slides of File Handling in C language.
Typology: Lecture notes
1 / 9
This page cannot be seen from the preview
Don't miss anything!
lost. Storing in a file will preserve your data even if the program terminates.
take a lot of time to enter them all. However, if you have a file containing all the data, you can easily access the contents of the file using a few commands in C.
to another without any changes.
of type FILE structure. This declaration is needed for communication between the file and the program.
defined in the stdio.h header file.
open the file in “r” mode:
we need to close it.
Counting Characters,
Tabs, Spaces, …