Question: 2. Write a C or C++ program to: a. open a file (file name input from the command line), b. print the file, c. update
2. Write a C or C++ program to: a. open a file (file name input from the command line), b. print the file, c. update the date the file was last accessed (as a string in the file) and d. save the file. e. Include code to handle the error if an invalid file name is input f. Compile the file. g. Run the file. h. Provide source code, screen shots of the runtime, output, and error handling if a bad file name input (100 pts) This problem is just to get you to start to become familiar with C or C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
