Pages

Write a program to read data from a file.

Friday, 19 April 2013


#include <stdio.h>
#include <conio.h>
int main()
{
    FILE *fp;
    char a;
    fp=fopen("file_name.txt", "r");
    while(a!=EOF)
    {
                  a=fgetc(fp);
                  printf("%c", a);          
             
    }

    getch();
}
 

Search Box

Most Reading

Contact Form

Name

Email *

Message *