Ty

Ty

  • NA
  • 16k
  • 840

file merging

Jul 2 2015 6:47 PM
okay what i want to know to do is this, if i have 2 text files one that say looked like this:
qwert
asdfg
zxcvb

and another that looked like this:
hi
jo
john
connor

how could i merge it so it ended up looking like this :
qwerthi
qwertjo
qwertjohn
qwertconnor
asdfghi
asdfgjo
asdfgjohn
asdfgconnor
zxcvbhi
zxcvbjo
zxcvbjohn
zxcvbconnor
 
its a bit of a weird ask, and i would have done it myself, but im not sure where to start, thank you in advance.

(note there isn't any surrounding code, it will just this single task by itself) 

Answers (2)