[Tutor] i have a major problem
Nick Wertzberger
nwertz@home.com
Sun, 9 Sep 2001 10:17:05 -0500
every time i try to access a file named snakeoil.txt, i get htis message:
Traceback (most recent call last):
File "<pyshell#2>", line 1, in ?
data=open("snakeoil.txt")
IOError: [Errno 2] No such file or directory: 'snakeoil.txt'
how do i fix this PROBLEM!?!?!?!?
i am getting really frustrated, the file is in the same folder as the
program, and i have made a copy on the mail part of my drive so it would be
at the beginning.
im using version 2.1.1
here's the code i use
#!/usr/bin/python
# open file
data = open("snakeoil.txt")
# read file
dump = data.read()
print dump, "-- EOF -- EOF --"
# clean up
data.close()