Question: Document1-Word Layout References Mailings Review View A?A |tz 2.- ||T Normal 1 No Spac Heading 1 Heading 2- Title Styles 9.8 Lab Exercise Ch.9b: File



Document1-Word Layout References Mailings Review View A?A |tz 2.-" ||T Normal 1 No Spac Heading 1 Heading 2- Title Styles 9.8 Lab Exercise Ch.9b: File I/O & Interleave Write this code in Visual Studio and upload your Source.cpp file for checking. (1) Write a program to prompt the user for an output file name and 2 input file names. name of any file which has an error, and exit if an error occurs opening any of the 3. For example, (user input shown in caps in first line) Enter first input file name: DOESNOTEXIST.T Error opening input file: DOESNOTEXIST.T Enter first input file name: F1.TXT Enter second input file name: F2.TXT Enter output file name: OUT.TXT Error opening output file: oUT.TXT The program should check for errors in opening the files, and print the (2) As it reads the input files, it should interieave the words of the files to write the output file and.alse to write the interleaved words on standard output (the screen). It should continue until it reaches the ends of both files, as they may be unequal lengths
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
