Page 1 of 1

ADD/EDIT Your Data (Adventures in Data Land!)

Posted: Sun Jul 10, 2005 4:33 pm
by Welopez
Now that you have a program to edit/display records in a data file, you'll occasionally need to add a new record, or edit an existing record.

Writing blocks of code in the main program automates these tasks to reduce mistakes.

In this program: OPEN a TXT file for INPUT, OPEN a TXT file for OUTPUT, OPEN a TXT file for APPEND. EDIT the records in an ARRAY and SAVE changes to a TXT file.

Feel free to modify any code for your own purposes.