Determines the action
The file is overwritten if it already exists, or created if it does not exist.
The file is created, if the file already exists an exception is thrown.
The specified text is appended to the file if it already exists, or created if it does not exist.
The text to write or append to the file.