I'm trying to open and read from a txt file and it should display the content in it but it display just 1 character as a output which is 'ÿ'.
Here is the source code:
int main(){
FILE *p;
p=fopen("D:\\eclipse_workspace_cpp\\PL_ODEV2\\inputbookdb.txt","r");
char c;
do{
c = fgetc(p);
printf("%c",c);
}
while(c != EOF);
fclose(p);
return 0;
}