title: 'invalid argument' error opening file (and not reading file)
body: <p>I am trying to write code that takes 2 numbers in a text file and then divides them, showing the answer as a top heavy fraction. I have gotten the fractions part to work when I am inputting my own values in the program, but i cannot get the program to recognise the text file. I have tried putting them in the same directory and putting the full system path of the file, but nothing so far has worked. right now I am just trying to get the contents of the file to print.</p>
  <pre><code>with open('C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Python 3.4\topheavy.txt','w') as f:
      for line in f:
          for word in line.split():
              print(word)      
  </code></pre>
  <p>I will then assign the 2 values to x and y, but I get this error:</p>
  <pre><code>Traceback (most recent call last):
  File &quot;C:\Python34\divider.py&quot;, line 2, in &lt;module&gt;
  open('C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Python 3.4\topheavy.txt','w')
  OSError: [Errno 22] Invalid argument:'C:\\ProgramData\\Microsoft\\Windows\\Startmenu\\Programs\\Python 3.4\topheavy.txt'
  </code></pre>