Hello
PilotinControl
your code is a little bit confused: there are many modules you do not use, you are not printing to the file, etc..
What i can suggest you is a total rewrite... ;=)
As first step in the program backup your data file with some time info in the name, then, after have read it in memory iterate over records. You also have to use some subroutine to cut away the code repetition of: clear the screen, prompt for input, update the value cycle.
Note also that dealing with the screen in cmd.exe is a bit uncomfortable: if you want some text to be near the bottom you have to know the size of the actual screen and print out a sort of template with empty lines. in any case the input is the last line.
More: you may need to verify the succesfull open of file for writing, the data entered by user (you have constraints on such data? can someone input the same data? can be blank?).
HtH
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.