Jump to content


Photo

Problem With Chapter 4. Python.


  • Please log in to reply
1 reply to this topic

#1 Martynas Kazlauskas

Martynas Kazlauskas

    New Member

  • Members
  • Pip
  • 1 posts

Posted 07 February 2015 - 02:11 AM

Hello there I'm getting this error :

result_f = open("results.txt")
FileNotFoundError: [Errno 2] No such file or directory: 'results.txt'

I've downloaded the results.txt file but how can I make my IDE read it ? ...

Thanks.

#2 #TM#

#TM#

    Active Member

  • Members
  • PipPipPip
  • 91 posts
  • Gender:Not Telling

Posted 15 March 2015 - 04:25 AM

Hi, Martynas Kazlauskas,

 

Really sorry for a really late answer.

Hopefully,  you have figured it out by now.

 

Your code and the "results.txt" file must be in the same folder

 

or

 

You can give the path of "results.txt" file in your code.
rolleyes.gif






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users