Good question.
Never had to face such problems before...
but what I can do actually is:
1) Read file into variable till i reach that line
2) Skip that line
3) Continue reading till eof
4) writting back the buffer to the file.

Basically use file() then preg_replace() then fopen() fwrite() fclose()

-Elias
http://www.eassoft.cjb.net

"Tarrant Costelloe" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Does anyone know what the code is, if you wanted to specify a specific
line
> in a file to delete and also to wipe clean the entire file?
>
> Thanks in advance!
>
> Taz
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to