Discuss this help topic in SecureBlackbox Forum

TElSftpClient.TextSeek

TElSftpClient     


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


Moves current file pointer to the specified string.

Declaration

[C#]
    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)

[Java]
    boolean textSeek(byte[] Handle, long 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