Beruflich Dokumente
Kultur Dokumente
File Handling
File Handling - Opening or creating a file, closing a file, File
modes, Reading and writing a text file using getc(), putc();
Program to demonstrate the same.
fprintf() ,fscanf(),fgets(), fputs(); Program to demonstrate the
same.
Difference between append and write mode, Reading and
writing in a binary file; Related program.
counting lines in a text file, Search in a text file; Program to
demonstrate the same.
Random file accessing methods- feof(), fseek(), ftell() and
rewind() functions; Sample programs to demonstrate the same.
Any sample mini Application demonstrating the use of File as
a storage and accessing unit.
Department of CSE, GEHU, DDUN
What is a Computer File ?
• It is necessary to store the data so that it can be
retrieved and displayed later. One way to store
the fetched information in a file.
• Creating a file.
• Opening an existing file.
• Reading from or Writing to a file.
• Closing a file.