Discuss this help topic in SecureBlackbox Forum

TElCustomFileSystemAdapter.FileOpen

TElCustomFileSystemAdapter     See also     


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


Opens the file.

Declaration

[C#]
    int FileOpen(string Path, uint OpenMode, TSBFileShareMode ShareMode, ref Object FileHandle);

[VB.NET]
    Function FileOpen(ByVal Path As String, ByVal OpenMode As UInt32, ByVal ShareMode As TSBFileShareMode, ByRef FileHandle As Object) As Integer

[Pascal]
    function FileOpen(const Path : string; OpenMode : cardinal; ShareMode : TSBFileShareMode; var FileHandle : TObject) : integer;

[C++]
    int32_t FileOpen(const std::string &Path, uint32_t OpenMode, TSBFileShareMode ShareMode, TObject &FileHandle);

[PHP]
    integer FileOpen(string $Path, integer $OpenMode, integer $ShareMode, TObject &$FileHandle)

[Java]
    int fileOpen(String Path, int OpenMode, TSBFileShareMode ShareMode, TElVFSOutputFileHandle FileHandle);

Parameters

  • Path - path to the file.
  • OpenMode - specifies file open mode.
  • ShareMode - specifies shared access mode.
  • FileHandle - file handle is passed via this parameter.

Possible open modes:

Possible share modes:

Return value

    Returns a VFS error code.

Possible values:

Description

    Call this method to open a file.

See also:     FileClose     FileExists     FileRead     FileWrite     GetFileStream    

Discuss this help topic in SecureBlackbox Forum