Bsc CSIT Semester 1 – C Programming – Unit 10: File Handling in C (4 Hrs.)
Comprehensive questions and detailed answers for Unit 10: File Handling in C (4 Hrs.). Perfect for exam preparation and concept clarity.
Explain different file opening modes.
Describe the different types of I/O functions used in file handling with syntax.
Suppose a file named “Num.txt” contains a list of integers. Write a program to extract the prime numbers only from that file and write them on “Prime.txt” file.
Write a program that simply reads data from a file
Explain different file I/O functions with example.
Why do we need data files? What are the different file opening modes? Write a program that reads data from a file “input.txt” and writes to “output.txt” file.
Write short notes on:
a. Benefits of data files
b. Graphics functions
Write a program to read and print data stored in a file input.txt.
Sample Questions
Describe the different types of I/O functions used in file handling with syntax.
Suppose a file named “Num.txt” contains a list of integers. Write a program to extract the prime numbers only from that file and write them on “Prime.txt” file.
Write a program that simply reads data from a file
Explain different file I/O functions with example.
And more questions available on this page.