In <[EMAIL PROTECTED]>, Neil Cerutti wrote: > new = file("new.dat", "w") > if not new: > print "Error. Could not open file new.dat for writing." > raw_input("Press Return To Exit.") > sys.exit(1)
Hey, Python is not C. File objects should *always* be "true". An error is handled via exceptions. Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list