Is there any way to read in a line of a file without having the file pointer move on to the next line of the file?
Printable View
Is there any way to read in a line of a file without having the file pointer move on to the next line of the file?
int saved = ftell(fileptr); // save
fgets(buff, 256, fileptr); // read
fseek(fileptr, saved, SEEK_SET); // restore