file concept

hi,

i have doubt in c in file concept ,
let put my example.

i have created example
# include<stdio.h>
FILE *fileptr;
fileptr = fopen("c:\emp.txt","r");
c=fgetc(fileptr);
while(c!=EOF)
{
printf("%c",c);
}
}

it is not show anu error but it not reading content of emp.txt my using turbo c.
Topic archived. No new replies allowed.