Extensions.File.SaveFile
Jump to navigation
Jump to search
Classification
Name | SaveFile |
Short Description | Saves all the content of the related file handle to the file |
Class | Action |
Extension | OTX File extension |
Group | File related Actions |
Exceptions | FileSaveException InvalidReferenceException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
File.SaveFile(FileWriteHandleVariable handle);
Description
The SaveFile activity saves all the content of the related file handle to the file. With SaveFile it is guaranteed that all changes are written to the file. After the save operation, further write operations are possible.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Handle | FileWriteHandle | Variable | - | [1..1] | The handle for the file that the related file object encapsulates. |
OTL Examples
/// Local Declarations
File.FileWriteHandle FileWriteHandle1;
/// Flow
FileWriteHandle1 = File.OpenFileForWrite("file:///D:/abc/abc.txt", false, @Encoding:UTF-8);
File.SaveFile(FileWriteHandle1);
See also
CloseFile
DeleteDirectory
DeleteFile
WriteBytes
WriteFile
WriteLine