Super Newbie Question
John Ridley
ojokimu at yahoo.co.uk
Mon Apr 4 20:13:47 EDT 2005
--- John Ridley <ojokimu at yahoo.co.uk> blurted:
> I suppose the simplest thing to do would be to write an empty string
> to the file:
>
> >>> f = open('tmpfile.txt', 'w')
> >>> f.write('')
> >>> f.close() # or f.flush(), if keeping open
Apologies - this is, of course, nonsense.
Time for me to hit the sack, I think...
John Ridley
Send instant messages to your online friends http://uk.messenger.yahoo.com
More information about the Python-list
mailing list