File operations
Appends all text to file
Appends all provided text to a file. If the file does not exist, it is created.
Parameters
Parameter
Description
Path
Path to file to append text to.
Text to append
Text.
Code page
Specifies which code page to write the text in. Default 65001 (UTF-8 with BOM). Use 0 for UTF-8 without BOM.
Output
No output.
Since
6.0
Appends all lines to file
Appends all provided lines to a file. If the file does not exist, it is created.
Parameters
Parameter
Description
Path
Path to file to append lines to.
Lines
Lines to append.
Code page
Specifies which code page to write the lines in. Default 65001 (UTF-8 with BOM). Use 0 for UTF-8 without BOM.
Output
No output.
Since
6.0
Check if file exists
Determains whether file at specified path exists.
Parameters
Parameter
Description
Path
The path to the file to check. Path can be UNC path or local file path.
Output
Simple value, 'True' if file exists. 'False' otherwise.
Since
6.0
Copy file
Copies a file to a new location.
Parameters
Parameter
Description
Source
The file to move. Path can be UNC path or local file path.
Destination
The location of the file. Path can be UNC path or local file path.
Overwrite if destination file exists
If set to True and destination file already exists, it is overwritten. If set to false and file already exists, no copy operation is done.
Output
Simple value, 'True' if file was successfully copied. 'False' otherwise.
Since
6.0
Delete file
Deletes file at provided path.
Parameters
Parameter
Description
Path
The path to file to delete.
Output
Simple value, 'True' if file was successfully deleted. 'False' otherwise.
Since
6.0
Get files modification times
Gets a record containing files modification times.
Parameters
Parameter
Description
Path
The path to get modification times from.
As UTC
True to get the modification times in UTC.
Output
Record with members 'CreationTime', 'LastWriteTime' and 'LastAccessTime'
Since
6.0
Move file
Moves a file to a new location.
Parameters
Parameter
Description
Source
The file to move. Path can be UNC path or local file path.
Destination
The location of the file. Path can be UNC path or local file path.
Overwrite destination file if it exists
If set to True and destination file already exists, it is overwritten. If set to false and file already exists, no move operation is done.
Output
Simple value, 'True' if file was successfully moved. 'False' otherwise.
Since
6.0
Read all bytes from file
Reads all bytes from a file and puts it a Table variable. Reading too large files can cause performance issues.
Parameters
Parameter
Description
Path
Path to source file to read lines from.
Output
Table with column 'value' where each row is one byte from source file.
Since
6.0
Read all lines from file
Reads all lines from a file and puts it a Table variable. Reading too large files can cause performance issues.
Parameters
Parameter
Description
Path
Path to source file to read lines from.
Code page
Specifies which code page to read the file in. Default 65001 (UTF-8 with BOM). Use 0 for UTF-8 without BOM.
Output
Table with column 'value' where each row is one line in source file.
Since
6.0
Read all text from file
Reads all text from a file and puts it a simple value variable. Reading too large files can cause performance issues.
Parameters
Parameter
Description
Path
Path to source file to read text from.
Code page
Specifies which code page to read the file in. Default 65001 (UTF-8 with BOM). Use 0 for UTF-8 without BOM.
Output
Simple value variable (string), with all content of file in it.
Since
6.0
Write all bytes to file
Writes all provided bytes to a file. If the file already exist, it is overwritten.
Parameters
Parameter
Description
Path
Path to file to append text to.
Bytes
A Table containing one column, value, with numeric values (byte, 0-255).
Output
No output.
Since
6.0
Write all lines to file
Writes all provided lines to a file. If the file already exist, it is overwritten..
Parameters
Parameter
Description
Path
Path to file to write lines to.
Lines
Lines to write.
Code page
Specifies which code page to write the lines in. Default 65001 (UTF-8 with BOM). Use 0 for UTF-8 without BOM.
Output
No output.
Since
6.0
Write all text to file
Writes all provided text to a file. If the file already exist, it is overwritten.
Parameters
Parameter
Description
Path
Path to file to write text to.
Text to write
Text.
Code page
Specifies which code page to write the text in. Default 65001 (UTF-8 with BOM). Use 0 for UTF-8 without BOM.
Output
No output.
Since
6.1.6
Write stream to file
Writes the content of a Flow variable that contains a binary stream to a file. This can for instance be used to write data from a camera input to the file system.
Parameters
Parameter
Description
Path
Path to file to write stream to.
Source stream
Stream to write. Must be a Flow variable.
Output
No output.
Since
6.2
Last updated