I just needed someone to confirm that. Thanks. The overwriting part wasn't the problem , i've a loop to take care of that ( via storing in buffer) . IT seems that you cannot write in between at all , unless u overwrite the file.
Atleast thats the problem in php 4.3
The file ppointer concept seems to be seriously flawed. The only solutio I could work was close to usrs.
Open the file and read the values
file("filename")
store the oldtext on a buffer
then open the file again in the 'w' mode ( hence truncating ...)
and then place ur new data first and then the old , hence working on append principle.
Same procedure to add in between.
Thanks mate!