[ Database tutorial | Text databases ]

Editing records

The normal way would be to read in the file, delete the record that you want to modify, and shove back in the corrected one. I’ll give some examples of at least two ways that you might want to approach this. One will have something to do with building complex data structures in memory, and why the additional effort pays off in the simplicity that it gives to editing records. The other will have something to do with tied hashes, and editing the file (seemingly) directly.

[ Database tutorial | Text databases ]