Assignment: File I/O
Note: Late Assignment will NOT beaccepted
Write a program to read the lines from file input.txt and follow the instructions below:
1- store the lines read into an array.
2- Print out the input of the array.
3- Write the lines into a file called output.txt per requirement below:
a) omit line 5 from the output file.
b) number each line in the output file.
Input.text:
This is test line 1.This is test line 2.This is test line 3.This is test line 4.This is test line 5.This is test line 6.This is test line 7.This is test line 8.This is test line 9.This is test line 10.