Click to See Complete Forum and Search --> : File operation in C


matu
March 7th, 2003, 02:35 PM
Hi
I have to randomly move in a file and findout wether i am at the begining of a new line in the file and then return that position .I will later o do some operations on that retuned line.
Regards ,
matu

j0nas
March 7th, 2003, 03:17 PM
Use fseek() for moving back and forth in the file.
Use ftell() to get the offset of current position.