title: File Not Found Error Python
body: <p>I'm trying to read a file on a specific path with <code>with open</code> method. Normally I do this with no problem, but right now there is a txt file on a specific path and Python raising <code>FileNotFoundError</code>. I formatted the pc today, I don't know the problem is about this or not. </p>
  
  <p>I added Python to path. Version is 3.5. I tried these lines at the beginning of file;</p>
  
  <pre><code>#!/usr/bin/env
  import os
  
  #!/usr/bin/env python
  import os
  
  #!/usr/bin/env python3
  import os
  </code></pre>
  
  <p>none of this worked. Still got the error. How can I fix this error? Searched questions about this problem but there are no answer for me.</p>
  
  <p><strong>UPDATE AFTER COMMENTS</strong></p>
  
  <p>Full traceback is: </p>
  
  <pre><code>`File "C:\Users\windows\Desktop\go.py", line 4, in &lt;module&gt;
      with open ("file") as f:
  FileNotFoundError: [Errno 2] No such file or directory: 'file'`
  </code></pre>
  
  <p>I'm trying to open this file with these codes;</p>
  
  <pre><code>with open ("file") as f:
      t = f.readlines()
  print (t)
  </code></pre>
  
  <p>The file is on the Desktop.</p>