You are on page 1of 1

Filing Example 2

============================================
#include<stdio.h>
#include<conio.h>
void main()
{
FILE *fptr;
char ch;
clrscr();

fptr = fopen("textfile.txt","r" );
//
while ((ch=getc(fptr))!=EOF)
printf("%c" ,ch);

fclose(fptr);
}

http://www.ravianeducation.blogspot.com
FARHAN: 03008855006