function TextSeek(const Handle: TScSFTPFileHandle; LineNumber: Int64): Boolean;



Call the TextSeek method to support seek on text file.

If the NonBlocking property is False, TextSeek returns True, if the requested line was found, and False, if the end of file was reached.

If the NonBlocking property is True, then control is returned at once and you can learn the result of the operation execution by handling the OnSuccess and OnError events.


Note: this request is not supported by all SFTP servers.



Handle - a handle returned by the OpenFile method.
LineNumber - the index of the line number to look for, where byte 0 in the file is the line number 0, and the byte directly following the first newline sequence in the file is the line number 1 and so on.


See Also




SecureBridge Components, Copyright © 2007-2021 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support