Hi, I'm writting a text editor in C, and I have a problem.
I isolated the problem to the next simple program:
first, I work with bin files,and when writting to the file or reading,
it's by Str.
suppose that we prepared a file with three strings in it,the length of each is 73. now see this program:
fseek(fp,-73L,SEEK_CUR); //return to the beginning of FirstLine
now, I've discovered that putting fseek(fp,ftell(fp),SEEK_SET)
after the fwrite solves the problem.
if anyone knows info that can be help,I will be glade to here.
and sorry for my bad english