1st off -> NO GUI!?!?
eish ...
---
Record Selection
---
Well you have to have a way of selecting what entry is to be edited or deleted.
The simplest, but very user-unfriendly way, would be to just ask what record number should be edited.
The user says they want to edit record # X.
Then you've selected your record - it's the Xth one in the file - easy

Slightly better way: Make it a Next/Previous type of thing. Select entry 1. If user wants Next - just go to entry 2, 3, 4... whatever. Remember to check if the record exists (no record #300, so can't go next @ record #299, and can't go previous @ #1)
---
To Edit
---
Just ask for every bit of information over. What's the new name, what's the new surname, what's the new mark... Messy but works.
Fancier would be to have a little menu asking "What do you want to change?" Then changing just that.
eg:
1: Change Name
2: Change Surname
3: Change Mark
4: Save Changes
---
Modifying text file
---
A text file is VERY hard to actually just 'edit', so the easiest is to read everything into memory, change it to whatever, and resave the whole file.
Another way to do it, would be to create a new file, entry by entry. So you create a new text file entry by entry, just changing the entries you want to as you go past them. Deleting an entry is just a matter of NOT writing it to the new text file then.
This post has been edited by PyroSA: Jul 14 2005, 11:18 AM