[Tutor] Create text file (original) (raw)

Bob Gailer bgailer at alum.rpi.edu
Thu Jul 1 09:44:23 EDT 2004


At 07:36 AM 7/1/2004, Lloyd Kvam wrote:

Simply use the Python file object with a t appended to the mode: textfile = file('newfile.txt','wt')

Interesting (1) that wt is not documented, and (2) apparantly anything can follow the w without error.

[snip]

Bob Gailer bgailer at alum.rpi.edu 303 442 2625 home 720 938 2625 cell



More information about the Tutor mailing list