#include<stdio.h>
#include<conio.h>
void main()
{
FILE *fp; /* file pointer*/
char ch;
clrscr();
fp=fopen("b.txt","r");/*open a file*/
if(fp==NULL)
{
printf("\n unable to open file");
}
while((ch=fgetc(fp))!=EOF)
{
printf("%c",ch);
}
fclose(fp);
getch();
}