File input / output - Read Between the Lines
I get the error message:
Oops, try again. Sorry, but I'm gonna need you to refresh the page! Don't worry your code is saved.
Traceback (most recent call last):
File "python", line 1, in
IOError: [Errno 2] No such file or directory: 'text.txt'
Refreshing the page doesn't help.
neither reopening my browser.
my_file = open("text.txt", "r") print my_file.readline() print my_file.readline() print my_file.readline() my_file.close()