Python - read - rewrite on a text file (Driving me crazy)
<p>I am new in python, and I like it a lot so far. I would like to do the following task, but I have not been able to do it and it is driving me crazy.</p>

<p>I have a file1 which looks like this;</p>

<pre><code>a b
c d
e f
</code></pre>

<p>and I file2 that look like this:</p>

<pre><code>g
h
i
</code></pre>

<p>and I file3 that looks like this:</p>

<pre><code>j
k
l
</code></pre>

<p>I would like to write file2 and file3 into file1, so file1 looks like this:</p>

<pre><code>a  b  g  j
c  d  h  k
e  f  i  l
</code></pre>

<p>Basically coping the other files columns next to the current columns on file1. I understand that in order to do that, I have to read all files and then re-write file 1. I tried, but nothing works. Please, anyone show me how this code should looks like. Thank you so much in advance.</p>
