OTX Reference  
OpenTestSystem.Otx.Extensions.File.Actions.SaveFile Class Reference

Saves all the content of the related file handle to the file. More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.File.Actions.SaveFile:
Inheritance graph

Public Attributes

FileWriteHandleVariable handle
 The handle for the file that the related file object encapsulates. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Saves all the content of the related file handle to the file.

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.

Exceptions
Exceptions.FileSaveException
Core.Exceptions.InvalidReferenceException


Syntax
File.SaveFile(FileWriteHandleVariable handle);
FileWriteHandleVariable handle
The handle for the file that the related file object encapsulates.
Definition: File.cs:644
Examples
// Local Declarations
File.FileWriteHandle FileWriteHandle1;
// Flow
FileWriteHandle1 = File.OpenFileForWrite("file:///D:/abc/abc.txt", false, @Encoding:UTF-8);
File.SaveFile(FileWriteHandle1);

Member Data Documentation

◆ handle

FileWriteHandleVariable OpenTestSystem.Otx.Extensions.File.Actions.SaveFile.handle

The handle for the file that the related file object encapsulates.