I have a file of the following format
8366 , 6699 , 1
10520 , 5145 , 1
4503 , 7473 , 1
10365 , 9453 , 1
depending upon a certain condition i need to be able to
modify the third field i.e the "1" field and increment its value by 1 or 2 or whatever .
How should i read this file and modify the field (i.e. write the value back to the file ), i can use functions like fseek and ftell pos but i dont know exactly how to go about the whole process,