Menu

[solved]-Try Write Program Inputs Input File Name User Opens File Reading Also Open Output File Wri Q39076403

Try to write a program that inputs an input file name from theuser and opens that file for reading. Also open an output file forwriting (you can just hardcode some output file name, like”half_text.txt”, into your code). Walk through the input filereading each line, then writing every other line to the outputfile. For example, if the input file had line 1: hi line 2: byeline 3: see you real soon then the output file should have: line 1:hi line 3: see you real soon

Expert Answer


Answer to Try to write a program that inputs an input file name from the user and opens that file for reading. Also open an output… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *