Re: fwrite(): can this function append to the middle of a file?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux