I've got a file of the following type:
TYPE Glostyp = RECORD
SveOrd : String;
UtlOrd : String;
Korrekt : Boolean;
glosfil : FILE OF Glostyp;
When my program starts it reads in all the words from the file in an array of glostyp:
glosor : ARRAY[1..200] OF Glostyp;
The user is then prompted to specify a search word and glosor[i] that matches the searchword shows on screen.
If the users chooses to delete glosor[i] the word should also be deleted from the file, how do I accomplish this?
The order in the file can't be messed up, it has to be the same as it was in the beginning, except for the deleted word.