"Terry Carroll" <[EMAIL PROTECTED]> wrote

If TextPad is your default txt editor just use
os.system("foo.txt")

or os.startfile("foo.txt"); sounds like the equivalent, but for some
reason, I prefer it.

Actually os.startfile was what I meant for the default case!
Thanks for pointing it out. system() may work if the preference is
already set but startfile is specifically intended for that scnario.

Alan G

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to