Before deleting and creating a new file, validate the output
Before deleting and creating a new file, validate the output