SpreadTooThin wrote:
> f = open('myfile.bin', 'rb')
> 
> How do I know if there was an error opening my file?
> 
try:
         open('noexist')
except:
         print "Didn't open"

-- 
Posted via a free Usenet account from http://www.teranews.com

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

Reply via email to