Hi,
I am designing a parser in which I am using fseek to go back in a file.
The problem that I am facing is that if the file opened is written in a notepad, then it works file. But if the file is written in some other editor,on using fseek, the file pointer moves to some other unintended position and causes the logic to fail.
(It works fine on a single character but fails when I pass string length as a parameter))
eg.
long int vl_strlen = strlen("abcd");
fseek(fp,vl_strlen,SEEK_CUR);
Is there any solution to this problem ?



LinkBack URL
About LinkBacks



