title: Python :- Read a text file and convert it to upper case and write to a second file
body: <p>Read a text file and convert it to upper case and write to a second file.</p>
  
  <pre><code>fo = open('/home/venkat/Desktop/Data Structure/Python/test.txt', 'r')
  for x in fo.read():
      y = x.upper()
      fo1 = open('/home/venkat/Desktop/Data Structure/Python/write.txt', 'a')
      fo1.write(y)
  </code></pre>
  
  <p>Contents of test.txt :- <strong>My name is Venkatesh</strong></p>
  
  <p>Correct Output :-
  MY NAME IS VENKATESH</p>
  
  <p>I am getting :-
  <strong>H</strong>MY NAME IS VENKATES</p>
  
  <p><em>H is not coming at the last place, rather it is moving the first character to second. Why?</em></p>