I want to take out a line from a file, edit it, and then place it back.
But how can I do this? I just want to extract the one line.
Is there any way to delete a line from a file while you are extracting it out?
So I can just save it at the end afterwards?
Without having to use the whole file, all the lines I mean?
This is how the form will be, which I will edit the line with:
<input type=\"text\" name=\"number\" value=\"$number\"> <input type=\"text\" name=\"name\" value=\"$name\">
The lines in the file are like this:
number|name|url|rating and more.
Thanks for any help.
- perlman
But how can I do this? I just want to extract the one line.
Is there any way to delete a line from a file while you are extracting it out?
So I can just save it at the end afterwards?
Without having to use the whole file, all the lines I mean?
This is how the form will be, which I will edit the line with:
Code:
<input type=\"text\" name=\"number\" value=\"$number\"> <input type=\"text\" name=\"name\" value=\"$name\">
The lines in the file are like this:
number|name|url|rating and more.
Thanks for any help.
- perlman