Discuss this help topic in SecureBlackbox Forum
Opens a file on the server.
Declaration
Parameters
TSBSftpFileOpenMode values:
|
TSBSftpFileOpenAccessItem values:
|
Return value
OpenFile returns True if operation was completed successfully, and False otherwise. OpenFileSync returns handle to the opened file.
Description
Use OpenFile to open files on a server side in asynchronous mode, and OpenFileSync to open files in synchronous mode.
If the file was successfully opened, the OnOpenFile event is fired.
The OnError event is fired otherwise.
The file is opened in binary mode, unless fmText flag is included to Modes parameter.
After you have finished using the directory, close the handle with a call to CloseHandle() method.