[Tutor] How to get a script to open a text file with Python?

Terry Carroll carroll at tjc.com
Wed Jun 11 03:53:11 CEST 2008

On Tue, 10 Jun 2008, Alan Gauld 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.

More information about the Tutor mailing list