For example, check that the folder being written to exists, that the user has supplied a text file, etc.