Discuss this help topic in SecureBlackbox Forum

TElCustomFileSystemAdapter.FileSeek

TElCustomFileSystemAdapter     See also     


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


Sets current position in the file.

Declaration

[C#/Java]
    long FileSeek(Object FileHandle, long Position, TSBFileSeekOrigin Origin);

[VB.NET]
    Function FileSeek(ByVal FileHandle As Object, ByVal Position As Long, ByVal Origin As TSBFileSeekOrigin) As Long

[Pascal]
    function FileSeek(FileHandle : TObject; Position : Int64; Origin : TSBFileSeekOrigin) : Int64; virtual; abstract;

[C++]
    int64_t FileSeek(TObject &FileHandle, int64_t Position, TSBFileSeekOrigin Origin);
    int64_t FileSeek(TObject *FileHandle, int64_t Position, TSBFileSeekOrigin Origin);

[PHP]
    integer FileSeek(TObject $FileHandle, integer $Position, integer $Origin)

Parameters

  • FileHandle - system handle of the file which position should be changed.
  • Position - new position in the file.
  • Origin - specifies seek origin.

Possible seek origins:


Return value

    Returns the new position in the stream. In case of error, returns -1.

Description

    Use this method to change current position in the specified file.

See also:     FileGetPosition    

Discuss this help topic in SecureBlackbox Forum