If text1
1 2 3
1 2 3 4
1 2 3
1
text2
4 5 6 7
5 6 7 8
4 5
2 3 4 5 6
and text3
8 9 10 11
9
6 7 8
7
What is the most direct way to join the rows of the different files together and write the resulting text to a file?
1 2 3 4 5 6 7 8 9 10 11
1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7
I tried looping through the files and use file.read()
but this merges the files vertically