Added a function to empty the file