Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  a
Language: C/C++
Code:
#include<stdio.h>
#include<conio.h>
void main()
{
    FILE *f1;
    char c;
    clrscr();

    printf("Data Inputnn");
    f1 = fopen("INPUT","w");

    while((c=getchar()) != EOF)
        putc(c,f1);

    fclose(f1);

    printf("nData Outputnn");
    f1 = fopen("INPUT","r");

    while((c=getc(f1)) != EOF)
        printf("%c",c);
    fclose(f1);
    getch();
}
          
Comments: