I am getting this error when I try to run the code below

****************
f = open("~/m", "r")
print f.read()
****************

****************
:~$ python python/my.py 
Traceback (most recent call last):
  File "python/my.py", line 1, in ?
    f = open("~/m", "r")
IOError: [Errno 2] No such file or directory: '~/m'
****************

but I have the "m" file in my home/username/


thank you
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to