title: Reading/Writing to a file in Python
body: <p>I have a python code with some print statements.Now, I want to read input from one file and output it to another file.How do i do it ?
  Should i include this ? </p>
  
  <p><strong>code</strong> :</p>
  
  <pre><code>fo = open("foo.txt", "r")
  foo = open("out.txt","w")
  </code></pre>