Program Description Add file IO to program 4. Create a plain-text file that will
ID: 3560327 • Letter: P
Question
Program Description
Add file IO to program 4. Create a plain-text file that will store employee information from the program code. The program will have the ability to load the array with the data from the file.
When the user chooses to load from a file, ask for the name of the file, then load the data into the employee array. If they choose keyboard, load the data as was done previously. Note that the application is going to want to use the folder where the .exe file is located when looking for the file, unless we type in a full or relative path. Using the debug folder is fine for our purposes.
Once the data is loaded into our array, either from an already existing file, or from keyboard input, we
Explanation / Answer
Writing to a file
Reading From a File
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.