-----Original Message-----
From: Analysis & Solutions
Sent: Friday, July 12, 2002 9:57 AM
To: PHP List
Subject: Re: [PHP] Re: Editing files by line

>Unfortunately, if a file is opened for appending via fopen('name', 'a'),
>the manual says the data is put at the end of the file regardless of using
>fseek().
>
> --Dan
I've written a script that edits a specific line in a text file and saves
the changes to the file for that specific line. I've noticed though that I
can't edit the first line in the file, which would be zero in the array
created by the file() function. When I write the edited data back to the
file I am using "w+" as the mode.

Is this related to the array or to the file mode?

-- Onaje Johnston


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

Reply via email to