Discuss this help topic in SecureBlackbox Forum

TElSftpClient.TextSeek

TElSftpClient     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Moves current file pointer to the specified string.

Declaration

[C#/Java]
    bool TextSeek(byte[] Handle, long LineNumber);

[VB.NET]
    Function TextSeek(ByVal Handle As Byte(), ByVal LineNumber As Long) As Boolean

[Pascal]
    function TextSeek(Handle : TSBSftpFileHandle; LineNumber: Int64) : Boolean;
    type TSBSftpFileHandle = ByteArray;

[C++]
    bool TextSeek(const std::vector<uint8_t> &Handle, int64_t LineNumber);

[PHP]
    bool TextSeek(array of byte|string|NULL $Handle, integer $LineNumber)

Parameters

  • Handle - handle to opened file, returned by OnOpenFileevent
  • LineNumber - number of string which pointer must be moved to.

Return value

    True if operation was completed successfully;
    False otherwise.

Description

    This method moves pointer to the specified string. Works only with text files.
    This method is supported only by SFTP version 4 and later

Discuss this help topic in SecureBlackbox Forum