Utilities

Write Text File

This activity saves a string that is stored in a variable as a .txt file in a given place and under a given name with a chosen encoding standard. You can choose to overwrite the existing file with the file with new encoding standard.

write-text-file
Parameter nameParameter TypeIn/OutDescription
Alternative Scenario If FailedBooleanInputcheckbox; default is "on"
ContentStringInputvariable that stores text to save
DisplayNameLiteralInputyou can change the name of activity for greater clarity of the scenario
EncodingDropdownInputselect the appropriate option from the dropdown list
File PathStringInputfull path to the file
Overwrite Existing FileBooleanInputcheckbox; default is "off" = file will not be overwritten
ResultBooleanOutputreturns the Boolean value: it will return True if no error is in activity, otherwise it will return False
Result CodeInt32OutputResult Code will return 0 if there is no error in activity, otherwise in most cases it will return 1, the extended result code will show only in several chosen activities