2080 9

BIT102 ยท 2080 ยท 5 marks

Why data file is needed? Write a program to write N numbers in file 'number.txt' and then read it and display only even numbers.

Why data file is needed? Write a program to write N numbers in file 'number.txt' and then read it and display only even numbers. [5]

C ProgrammingChapter 10: File Input Output and PreprocessorFile handling and file operations

Data files are needed for the following reasons: 1. Permanent Storage - Data stored in variables is lost when the program ends. Files store data permanently on disk. 2. Large Data Handling - Files allow storing and processing large amounts of data that cannot fit in memory at once. 3. Data Sharin...