Emptying file will be done by createFile(...)