This allows the user to write string to a file