Question: C++ programing File Operations and Parsing 1. Create a file using Notepad. a. Name the file Lab8 StudentIn.txt b. Last name, first name, Major, Advisor's
1. Create a file using Notepad. a. Name the file Lab8 StudentIn.txt b. Last name, first name, Major, Advisor's last name, GPA, and starting salary c. Save the file 2. Program shall read the contents of this file, one line at a time 3. Stop reading the file when hit [EOF] 4. Take each line (string) read in, and break apart into separate fields. a. Each field (item) will end with a comma b. Store the parts into a structure data type. In your program, call the structure ST_STUDENTINFO 5. Open an output text file a. Output filename shall be named Lab8 Student Out.txt 6. Write each element of the structure to its own separate line, in the output file Notes 1. Open the input file at the appropriate time 2. Check if input does not open. If not, display an error 3. Make sure the path and filenames for the two files are 4. Make sure to close input and output files, if they were 5. Have a nice comment header at the top of your code message and exit. accurate and accessible opened. with the following info, at a minimum: your name, course number, description of this lab
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
