Yo guys,
I'm trying to read a text file:
while(!feof(fp)){
fscanf(fp, "%c", &c);
printf("%c", c);
}
But... the output always duplicate the last char, I dont know why... :/
Any idea?
Yo guys,
I'm trying to read a text file:
while(!feof(fp)){
fscanf(fp, "%c", &c);
printf("%c", c);
}
But... the output always duplicate the last char, I dont know why... :/
Any idea?