Skip to main content

Save to File

Save content to a file. Enable 'Create directories' to automatically create any missing parent directories in the path.

Category: File & Folder Operations · Group: Files · Activity name: SaveToFile

The SaveToFile activity in the designer

Example

SaveToFile("<content>", "<filePath>", createDirectories=False)

Inputs

NameTypeRequiredDefaultDescription
ContentstringYesThe content that will be written to the file.
File PathstringYesThe full system path of the file to be saved. If the file does not exist, it will be created.
Create directoriesbooleanFalseAutomatically create any missing parent directories in the file path.