How to do it without overwriting the contents of the file?
Thanks in advance
Hi,
try following (I didn't test it!):
$f = "./test.txt"; $line = "This is a test...\n"; $c = join("", file($f)); $fp = fopen($f, "w+"); fputs($fp, $line.$c); fclose($fp);
wizkid
Thanks a lot,
nice method, it worked exactly as I wanted...