Code for Program to perform file read and write operations in C Programming
#include<stdio.h>
#include<conio.h>
void main()
{
FILE *f1;
char c;
clrscr();
printf("Data Input\n\n");
f1 = fopen("INPUT","w");
while((c=getchar()) != EOF)
putc(c,f1);
fclose(f1);
printf("\nData Output\n\n");
f1 = fopen("INPUT","r");
while((c=getc(f1)) != EOF)
printf("%c",c);
fclose(f1);
getch();
}