Question: 8. a. Given the following, write a code SEGMENT that does the following: 1. Creates a string variable to store a file name (to be
8. a. Given the following, write a code SEGMENT that does the following: 1. Creates a string variable to store a file name (to be entered by the user) 2. Requests the input file name from the user and stores the name in a variable 3. Opens the input file using the entered file name 4. Tests the STATE of the file open. If the file does not open, output a message to the user exit the program Be sure to: 5. Include the necessary header files 6. Declare necessary variables
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
