On 24/01/14 02:34, Tobias Quezada wrote:
>>>fp=open("prez.dat","r") >>>x=fp.read >>>(print(x)
/IOError: [Errno 2] No such file or directory: 'prez.dat'/
Python can't see your file. You can check what python is seeing by importing os and using listdir(): import os os.listdir(',') # . is the current directory If your file is not listed then that's your problem. Or it could be a permissions problem, but I can't recall if that's a different error message, I suspect so. hth -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.flickr.com/photos/alangauldphotos _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor