Writing Files

Bernard Delmée bdelmee at advalvas.REMOVEME.be
Sat Jan 10 16:33:52 CET 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