#include
main()
{
FILE *fl;
char c;
printf(“Data input”);
fl =fopen(“Input.txt”, “w”); /*Open the file Input*/
while((c=getchar())!=EOF) /*get a character from key board*/
putc( c, fl); //write a character to input
fclose(fl); //close the file input
printf(‘Data output”);
fl =fopen(‘INPUT.txt” ,”r”); //Reopen the file input
while((c=getc(fl ))!=EOF)
printf(“%c”, c );
fclose(fl );
}