Hi,
I'm trying to learn Python. I'm working through a tutorial and I've hit a problem where I can't read anything from files. I get an error message saying no file or directory exists.
Heres my code:
# the open function returns a file object
file = open('Users/jamie/Python/German.txt', 'rb')
# loop over each line of the file
for line in file:
print line
# releases the file object
file.close()
Any help would be great!
Thanks
I'm trying to learn Python. I'm working through a tutorial and I've hit a problem where I can't read anything from files. I get an error message saying no file or directory exists.
Heres my code:
# the open function returns a file object
file = open('Users/jamie/Python/German.txt', 'rb')
# loop over each line of the file
for line in file:
print line
# releases the file object
file.close()
Any help would be great!
Thanks