[Tutor] how to check whether a file exists or not??

Asrarahmed Kadri ajkadri at googlemail.com
Thu Oct 12 16:48:58 CEST 2006


Hello,

Sorry, but this is a very basic questions...
Can you tell me how to check the existence of a file..
Also if a file exists, and we open it in a write mode, it would be truncated
to zero length. So what is the way out of this??#

Regards,

Asrar
-- 
To HIM you shall return.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061012/20e13203/attachment.html 


More information about the Tutor mailing list