Deleting and Appending to Files