title: python cannot open and edit a .reg file
body: <p>I am trying to edit a .reg file in python to replace strings in a file. I can do this for any other file type such as .txt.</p>
  
  <p>Here is the python code:</p>
  
  <pre><code>with open ("C:/Users/UKa51070/Desktop/regFile.reg", "r") as myfile:
      data=myfile.read()
  print data
  </code></pre>
  
  <p>It returns an empty string</p>