Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 19 Online
OpenStudy (anonymous):

in PS2 problem #4 ps2_hangman.py cannot find words.txt file. The file is in the same folder as the .py file. I get the following error message: [Errno 2] No such file or directory: 'words.txt' has anybody else had this issue?

OpenStudy (e.mccormick):

Well, it is going to depends on how it is being called. http://courses.cs.washington.edu/courses/cse140/13wi/file-interaction.html The working directory may not be what you think it is.

OpenStudy (anonymous):

thank you! that link was very helpful!

OpenStudy (e.mccormick):

Yah, it is a lot easier to deal with once you know how to find or set the path.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!