Dear Friends
I need your kind help urgently.
I'm writing a piece of program under Ubuntu attempting to open an existing file to update (read/write).I need
to move file pointer to any position in the file based on some calculations and alter the content. But the problem is that when I open the file using (fopen and "a"-mode) it writes always at the end of file and I cannot move backward(fseek has no effect). If I open it in "w"-mode it would be truncated (actually destroyed). The action (forcing the file pointer to set at any location of file) is something I used to do under DOS perfectly. Could you please suggest any solution for the issue?