Removing plain text file writing