Discuss this help topic in SecureBlackbox Forum
Reads the part of a remote file.
Declaration
Parameters
Return value
Read returns:
True if operation was completed successfully;
False otherwise.
ReadSync returns the number of bytes which were actually read.
Description
Use this method to read the block of data from the opened file. Read method is asynchronous and returns immediately (unless SynchronousMode is true). ReadSync method is synchronous and returns after the data arrives or error happens.
If the data from file was successfully read, the OnData event is fired and the received data is passed to the event handler. The OnError event is fired if the error happened. Note, that if Buffer parameter is passed, it will be returned back in OnData.
Do not pass the handle to opened directory as Handle.