Let me know if you figure it out, I created a script that generates a backup file for deleted transactions, and I wanted to have my script check to make sure the file doesn't exist, but all I could find is, if the file exists, then it will just concatenate the new information to the existing file.