I suggest using one array to hold the file contents, another array to hold the user's changes, and then write both arrays to the file when the program exits. As data is needed while the program is...
Type: Posts; User: GregBrannon
I suggest using one array to hold the file contents, another array to hold the user's changes, and then write both arrays to the file when the program exits. As data is needed while the program is...
Why are you re-reading the file rather than just using the array in which the file contents have already been stored?