Originally Posted by shabbir
Just try the following.
Close the file after writing string and then open back to write and see what is the output?
Even after closing the file, output is same. I just forgot to put fclose here. In file, I am using that one. I have edited the post.
More over, whenever I re-run the PHP page, it should return the current pointer position which should be the at the end here. But ftell function returns 0 everytime, whether text file has data or not.