Reading between the line


#1



https://www.codecademy.com/courses/python-intermediate-en-OGNHh/1/1?curriculum_id=4f89dab3d788890003000096#


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


I just don't get it
I dont know what is wrong with this
thanks a lot

Replace this line with your code.


#2

I'm getting the same error also. Your code is fine.. there is some sort of backend error from CodeAcademy


#3

same error for me. I will try the exercise back a little late and see if it works then


#4

writing something in the text.txt tab and then deleting it helped with the problem


#5

first you have to make file with text.txt and write something in it and then use my_file.readline() to read lines from text.txt


#6

Same error. coreblaster56949's workaround did the trick.


#7

Thanks! I was wondering if it was just me haha. This workaround works.


#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.