Mostly Linux & Python syntax notes and hyperlinks.

Friday, June 17, 2011

python: create a dummy file in one line

open('onestep.txt','w').close()

from a comment on http://rogermcd.wordpress.com/2008/07/20/creating-a-file-with-python/

No comments:

Post a Comment