Skip to content

Latest commit

 

History

History
74 lines (66 loc) · 886 Bytes

08-combine-two-files.md

File metadata and controls

74 lines (66 loc) · 886 Bytes

Combine two files

Write a program to read two txt files, line by line, concatenate each line pair for both files, and output the concatenated result to the screen.

Sample txt file (1)

if
you
let
and
go,
someone
will
be
smart
enough
to
catch
me
and
never
make
your
mistake

Sample txt file (2)

ever
do not
me
my friend
tonight,
, yes, someone
... mhmmm ...
... mhmmm ...
... mhmmm ...
... mhmmm ...
... mhmmm ...
... mhmmm ...
... mhmmm ...
... mhmmm ...
... mhmmm ...
... mhmmm ...
... mhmmm ...
ever again.

Sample Output

if ever
you do not
let me
and my friend
go, tonight,
someone, yes, someone
will ... mhmmm ...
be ... mhmmm ...
smart ... mhmmm ...
enough ... mhmmm ...
to ... mhmmm ...
catch ... mhmmm ...
me ... mhmmm ...
and ... mhmmm ...
never ... mhmmm ...
make ... mhmmm ...
your ... mhmmm ...
mistake ever again.

Variants