Write a program that reads a text file and writes its every odd line in another file.
Line numbers starts from 0.
Read 01_OddLinesIn.txt and test your output against 01_OddLinesOut.txt, then read 02_OddLinesIn.txt and test against its respective output file and so on.
Examples:
Input.txt
|
Output.txt
|
Two households, both alike in dignity,
In fair Verona, where we lay our scene,
From ancient grudge break to new mutiny,
Where civil blood makes civil hands unclean.
From forth the fatal loins of these two foes
A pair of star-cross'd lovers take their life;
Whose misadventured piteous overthrows
Do with their death bury their parents' strife.
|
In fair Verona, where we lay our scene,
Where civil blood makes civil hands unclean.
A pair of star-cross’d lovers take their life;
Do with their death bury their parents’ strife
|