SyntaxFix
Write A Post
Hire A Developer
Questions
You can do this:
def deleteContent(pfile): fn=pfile.name pfile.close() return open(fn,'w')