title: What is wrong with this code to open a file?
body: <p>I tried this code to open a file in Python:</p>
  <pre><code>f = open(&quot;/Desktop/temp/myfile.txt&quot;,&quot;file1&quot;)
  </code></pre>
  <p>It didn't work. I think this is because I didn't specify the right path. How can I fix the problem?</p>