File question

Erik Max Francis max at alcyone.com
Sun Oct 20 05:41:00 EDT 2002


Ken wrote:

> For example, before execution, I read the system time with getTime(),
> then
> start execution, which will output results on a file, say output.txt.
> How do
> I compare the time before execution to the output.txt filedate/time to
> see
> if it is newer?

Try the os.stat function.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ Never use two words when one will do best.
\__/ Harry S. Truman
    Bosskey.net / http://www.bosskey.net/
 A personal guide to online multiplayer first person shooters.



More information about the Python-list mailing list