Hi :)
I would like to know if that's possible to select a particular line of file, read it, edit it or delete it.
My guess is: open the file, read it, display the array value of the line in question and then save the whole text.
Any ideas?
Printable View
Hi :)
I would like to know if that's possible to select a particular line of file, read it, edit it or delete it.
My guess is: open the file, read it, display the array value of the line in question and then save the whole text.
Any ideas?
you're correct, it's as simple as that.
open, read, edit, update.
Here are a few things that might help you
www.php.net/file
www.php.net/readfile
www.php.net/fopen
www.php.net/fread
www.php.net/fwrite
Check out the examples on the site too, might help you reach a solution much quicker.
-asT.
thanks a lot :)