I don't think there is a way to do it automatically.  Just read the file
into a variable, prepend the new line string, and rewrite the file.

-----Original Message-----
From: Nick Richardson [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 26, 2002 3:41 PM
To: PHP General
Subject: [PHP] Prepending string to TOP of files?

Is there any way to prepend a string into the top of a file? - only docs
on
fopen show how to append to the end?

//Nick Richardson
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--------------------------------------------------------------
--   We must come to see that the end we seek, is a society --
-- at peace with itself.  A society that can live with its  --
-- concience.  That will be a day not of the white man, not --
-- of the black man... That will be the day of man, as man! --
--                          -Dr. Martin Luther King Jr.     --
--                                 -March 25th, 1965        --
--------------------------------------------------------------


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




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

Reply via email to