title: Reading two text files line by line simultaneously
body: <p>I have two text files in two different languages and they are aligned line by line. I.e. the first line in textfile1 corresponds to the first line in textfile2, and so on and so forth.</p>
  
  <p>Is there a way to read both file line-by-line simultaneously? </p>
  
  <p>Below is a sample of how the files should look like, imagine the number of lines per file is  around 1,000,000. </p>
  
  <p>textfile1:</p>
  
  <pre><code>This is a the first line in English
  This is a the 2nd line in English
  This is a the third line in English
  </code></pre>
  
  <p>textfile2:</p>
  
  <pre><code>C'est la première ligne en Français
  C'est la deuxième ligne en Français
  C'est la troisième ligne en Français
  </code></pre>
  
  <p>desired output </p>
  
  <pre><code>This is a the first line in English\tC'est la première ligne en Français
  This is a the 2nd line in English\tC'est la deuxième ligne en Français
  This is a the third line in English\tC'est la troisième ligne en Français
  </code></pre>
  
  <p>There is a Java version of this <a href="https://stackoverflow.com/questions/10831007/read-two-textfile-line-by-line-simultaneously-java">Read two textfile line by line simultaneously -java</a>, but Python doesn't use bufferedreader that reads line by line. So how would it be done?</p>