[Tutor] Checking file existance

Chris Avery purplebo@babylonia.flatirons.org
Thu, 22 Aug 2002 15:34:32 -0600


Hello all.
I need to write some code that checks if a file exists.  If it exists, the program continues, but if it doesn't, it get's created.  I'm thinking of an if statement like 
if file exists:
	run rest of program
else:
	create file.

I just don't know how to check if the file's there.

Regards,
Chris
-- 
+++++++++++++++++++
Chris Avery, KC0KTH
+++++++++++++++++++