Writing Files

Bernard Delmée bdelmee at advalvas.REMOVEME.be
Sat Jan 10 10:33:52 EST 2004


Which statement did you try? Here's a one-liner that works:

file( 'mydata.txt', 'w' ).write( "the python sleeps tonight" )




More information about the Python-list mailing list