Edit row/line in .txt
Posted: Thu Sep 29, 2005 12:18 pm
Hi.
I have a .txt document full of data, all sorted like:
| ID | first_name | last_name | data | more_data \n
I add and delete lines inn the file, but I do not know how I may edit one perticular line and save it at the same place after. It is important that I may save it at the same rownumber in the file.
ie: My file has 7 rows of data. I want to edit row 4. After editting I need to save the edited line to row 4, and thereby replace the originale line.
Does anyone here have any ideas?
Looking forward to your replies...
royend
I have a .txt document full of data, all sorted like:
| ID | first_name | last_name | data | more_data \n
I add and delete lines inn the file, but I do not know how I may edit one perticular line and save it at the same place after. It is important that I may save it at the same rownumber in the file.
ie: My file has 7 rows of data. I want to edit row 4. After editting I need to save the edited line to row 4, and thereby replace the originale line.
Does anyone here have any ideas?
Looking forward to your replies...
royend