2074 10

C Programming20745 marksInput Output Operations in File

Write a program to read and print data stored in a file input.txt.

Write a program to read and print data stored in a file input.txt. [5]

  • A file is a collection of related data placed on disk. - fopen() is used to open a file with a specified mode. - Mode "r" opens an existing file for reading only; previous data is not erased. - fgetc() reads a single character from a file and increments the file pointer. - fclose() is used to c...
Up nextWhy do we need graphics functions? Write a program to draw a circle. [2+3]