I/O Files: Lesson 5 Error



Traceback (most recent call last):
File "python", line 1, in
IOError: [Errno 2] No such file or directory: 'text.txt'

For some reason, the file "text.txt" is not recognized!

my_file = open("text.txt", "r")
print my_file.readline()
print my_file.readline()
print my_file.readline()



This is a bug on our side, which we are trying to fix.
It works if you first edit the text.txt file before submitting the exercise.


It's 7/28, and the bug is still there. It's been 4 months... you guys should really get it fixed.


bug still there - how can I complete the course with this bug preventing me submitting the code?


change to the text.txt tab and add an empty line to the end of the file, this worked for me!


Thanks Darko!