Skip to content

Save and Close Activity

The Save and Close activity enables users to manage text files after operations have been performed. It provides options to save, close, or both save and close a previously opened or created text file, ensuring data persistence or resource release.

Field Description Requirement
Text name The reference name of the text file that has been previously opened or created. Required
Action The desired operation to perform on the text file. Options include Save, Close, or Save and Close. Optional
File name The full path and name where the text file will be saved. This parameter is used when saving the file to a new location or with a different name. Optional

Action Types & Examples

SAVE

  • Format: string
  • Example Result: SAVE

CLOSE

  • Format: string
  • Example Result: CLOSE

SAVE_AND_CLOSE

  • Format: string
  • Example Result: SAVE_AND_CLOSE

Implementation Examples

Field Setup - Text name: ${newText} - Action: SAVE - File name: C:\temp\notes.txt

Execution Parameters - SaveAndClose(TextName: newText, Action: SAVE, FileName: C:\temp\notes.txt)

Technical Notes

The File name parameter allows saving the text file to a new path or with a different name. If the intention is to save the file in a format other than plain text, such as a Microsoft Word document, ensure the specified file name includes the appropriate extension (e.g., .docx) and that the environment supports saving in the desired format.