joefazee wrote:
Can i write to the middle of a file using the fwrite() function like

-------------------
line one
line two
line three
--------------------
and maybe the next day i want to write in between line two and line three.

Read in the whole file.

Put the line in the middle manually.

Write the whole file out again.

fwrite itself doesn't have the functionality you want.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to