[Tutor] how to clear contents of a file

sudhir prasad sudheer.kay at gmail.com
Wed Feb 10 06:49:10 CET 2010

how to clear contents of a file with out actually deleting it,
basically wat im trying to do is copy a source file into  a common file ,run
the common file,after that  i need to copy another source file  into the
common file,i ant to clear the  contents of the common file before copying
contents into it.how does f.truncate() helps here

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100210/04e010b1/attachment.htm>

More information about the Tutor mailing list