How to edit and delete records from flat file in perl
Posted on 2000-04-04
I have a flat file which I store some data in it and each record in a line like this
note: |!!| is the field separator.
This file contain about 4000 records and can be more (4000 line because each line is a record)
so what I want to do is:
1- to edit one of the records (lets say record 3476)
2- to delete one of the records (lets say record 3000).
so what is the perfect way to do so.......
do I have to rebuild the file which contain 4000+ record, and it could be more.
or there is a better way to do so....
Please give code for both ways.....
Wait.... I will run the cgi on a NT web-server....