Skip to content

File

File - CombinePath

Combine a path with a root folder and a name

IN

Name Type Description
InRootFolder PathFile The destination folder.
InName String The destination file name.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutPath String The file path after the operation.
Error ErrorState Gets the execution error message

File - Copy

Copy a file to a new location

IN

Name Type Description
InFile PathFile The source file to copy.
InDestination PathFile The destination path.
InReplace Bool If true,replace the destination file if already exists.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutResult Bool The copy operation result.
Error ErrorState Gets the execution error message

File - Delete

Delete a file

IN

Name Type Description
InFile PathFile The source file to delete.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutResult Bool The delete operation result.
Error ErrorState Gets the execution error message

File - GetAttributes

Get file attributes

IN

Name Type Description
InFile PathFile The source file.
InUseUtc Bool Specify to use UTC format.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutBytesSize Int The file's size in bytes.
OutCreationTime String The file's creation time.
OutExtension String The file's extension.
OutIsReadOnly Bool The file's readonly attribute.
OutIsHidden Bool The file's hidden attribute.
OutLastAccessTime String The file's last access time.
OutLastWriteTime String The file's last write time.
Error ErrorState Gets the execution error message

File - Move

Move a file to a new location

IN

Name Type Description
InFile PathFile The source file to move.
InDestination PathFile The destination file.
InReplace Bool If true,replace the destination file if already exists.Type : bool
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutResult Bool The move operation result.Type : bool
Error ErrorState Gets the execution error message

File - ReadLines

Read file's lines

IN

Name Type Description
InFile PathFile The source file to read.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutLines StringArray The collection of strings representing each file's line.
Error ErrorState Gets the execution error message

File - ReadText

Read a file into a text

IN

Name Type Description
InFile PathFile The source file to read.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutText String The text representing the file's content.
Error ErrorState Gets the execution error message

File - TestFileEmpty

Test if a file is empty,i.e. file length is 0

IN

Name Type Description
InFile PathFile The file name to test.Type : string
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutEmpty Bool True if file is empty,otherwise false.Type : bool
Error ErrorState Gets the execution error message

File - TestFileExists

Test if a file exists at given location

IN

Name Type Description
InFile PathFile The file path to test.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutResult Bool True if file exists,otherwise false.
Error ErrorState Gets the execution error message

File - WriteLines

Write a collection of strings to a file

IN

Name Type Description
InDestination PathFile The destination file.
InLines StringArray The lines to write.
InAppend Bool If true,append the content to existing file,otherwise overwrite it.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
Error ErrorState Gets the execution error message

File - WriteText

Write a text to a file

IN

Name Type Description
InDestination PathFile The destination file.
InText String The text to write.
InAppend Bool If true,append the content to existing file,otherwise overwrite it.
InNewLine Bool If true,write the content followed by line terminator.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
Error ErrorState Gets the execution error message