Opens a file. If the file does not exist, it is created. Although any open files are closed and saved when the agent disconnects or when a test finishes execution, Micro Focus recommends using the FileClose method to close a file.
hFile = FileOpen (sFilePath, fmMode [, fsShare, csCharSet])
Variable | Description |
---|---|
hFile | The handle of the file. FileHandle. |
sFilePath | The path to the file. Can be either an absolute path or a path relative to the current working directory. String. |
fmMode | The mode to open the file with. FileOpenMode |
fsShare | Defines how other processes can access the opened file. FileShareMode |
csCharSet | Specifies the encoding type for new files. For existing files, specifies the encoding type if no byte order mark (BOM) is present. CharSet. |