Discuss this help topic in SecureBlackbox Forum

TElSimpleSFTPClient.TextSeek

TElSimpleSFTPClient     


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


Moves current file pointer to the specified text line.

Declaration

[C#]
    void TextSeek(byte[] Handle, long LineNumber);

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

[Pascal]
    procedure TextSeek(const Handle : TSBSftpFileHandle; LineNumber : Int64);

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

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

[Java]
    void textSeek(byte[] Handle, long LineNumber);

Parameters

  • Handle - handle to opened file, returned by OpenFile orCreateFileevent
  • LineNumber - the number of text line which pointer must be moved to.

Description

    This method moves pointer to the specified line of text. Works only with text files.
    In case of error, EElSFTPError exception containing SFTP error code, is raised. For more information on error handling, please read the corresponding how-to article.
    This method is supported only by SFTP version 4 and later

Discuss this help topic in SecureBlackbox Forum