Discuss this help topic in SecureBlackbox Forum

TElCompoundFileStorage.Open

TElCompoundFileStorage     See also     


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


Opens file.

Declaration

[C#/Java]
    void Open(string FileName, bool ReadOnly);
    void Open(System.IO.Stream Stream);
    void Open(System.IO.Stream Stream, bool OwnStream);
    void Open(System.IO.Stream Stream, bool OwnStream, bool ReadOnly);

[VB.NET]
    Sub Open(ByVal FileName As String, ByVal ReadOnly As Boolean)
    Sub Open(ByVal Stream As System.IO.Stream)
    Sub Open(ByVal Stream As System.IO.Stream, ByVal OwnStream As Boolean)
    Sub Open(ByVal Stream As System.IO.Stream, ByVal OwnStream As Boolean, ByVal ReadOnly As Boolean)

[Pascal]
    procedure Open(FileName : string; ReadOnly : boolean);
    procedure Open(Stream : TStream);
    procedure Open(Stream : TStream; OwnStream : boolean);
    procedure Open(Stream : TStream; OwnStream : boolean; ReadOnly : boolean);

[C++]
    void Open(const std::string &FileName, bool ReadOnly);
    void Open(TStream &Stream);
    void Open(TStream *Stream);
    void Open(TStream &Stream, bool OwnStream);
    void Open(TStream *Stream, bool OwnStream);
    void Open(TStream &Stream, bool OwnStream, bool ReadOnly);
    void Open(TStream *Stream, bool OwnStream, bool ReadOnly);

[PHP]
    void Open(string $FileName, bool $ReadOnly)
    void Open(TStream $Stream)
    void Open(TStream $Stream, bool $OwnStream)
    void Open(TStream $Stream, bool $OwnStream, bool $ReadOnly)

Parameters

  • FileName - name of the file on the disk
  • Stream - stream with the file data
  • OwnStream - specifies if the stream is owned by the component. If this parameter is False or omitted, user should take care of stream disposal.
  • ReadOnly - specifies if the file should be opened read-only

Description

    Use this method to open the compound file from disk or memory stream.

See also:     Close     Flush    

Discuss this help topic in SecureBlackbox Forum