why not deleting the file and creating a new one with the same name afterwards?
or just open file for writing and write ""
sorry, it was a mistake. please ignore this posting