to display the old text then open the file for read first
fopen('filename.txt', 'r') and display the content, then when you wanna
replace the content with the new text just
open the file for write and it'll truncate the content.
fopen('filename.txt', 'w') will do
--
===========================
DaWaN
da*****@hotmail.com
"Jan" <ja************@hotmail.com> wrote in message
news:54**************************@posting.google.c om...
I'm busy making a very basic and simple content management system wich
stores the text in a .txt file. now i need to know how i can clear the
.txt file.. now it just adds the new text to the .txt file while it
should replace it!
I also like to display the old text in the textarea... help me please!