- Documentation
- Activities
- Files & Folders
- Create File
Creates a new file at the specified location.
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
File Path filePath | file | Required | — | — |
Initial Content initialContent | string | Optional | — | — |
Overwrite Existing overwriteExisting | boolean | Optional | false | — |
Create Missing Folders createMissingFolders | boolean | Optional | false | — |
Encoding encoding | enum | Optional | utf-8 | —utf-8utf-16asciilatin1 |
Output Variable outputVariable | variable | Optional | CreateResult | — |
Output
$outputVariableObjectObject describing the create result. Reference {CreateResult.filePath}, {CreateResult.sizeBytes}, {CreateResult.overwritten}, {CreateResult.success}, or {CreateResult} alone (resolves to the new file path).
successBooleanfilePathStringsizeBytesNumberoverwrittenBooleanpathString
Compatibility
WindowsLinuxAttendedUnattended
Related activities
Append Text File
Adds text to the end of an existing .txt file.
Copy File
Copies a file to a specified destination while keeping the original file unchanged.
Delete File
Permanently deletes a file.
File Exists
Checks whether a file exists at the specified path.
Get File Info
Returns metadata about a file: name, size, dates, and read-only flag.
Move File
Moves a file to a new location and removes it from the original location.