Discuss this help topic in SecureBlackbox Forum

TElCompoundFileStorage.CreateNew

TElCompoundFileStorage     See also     


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


Creates a new file.

Declaration

[C#]
    void CreateNew(string FileName, int Version);
    void CreateNew(System.IO.Stream Stream, int Version);
    void CreateNew(System.IO.Stream Stream, int Version, bool OwnStream);

[VB.NET]
    Sub CreateNew(ByVal FileName As String, ByVal Version As Integer)
    Sub CreateNew(ByVal Stream As System.IO.Stream, ByVal Version As Integer)
    Sub CreateNew(ByVal Stream As System.IO.Stream, ByVal Version As Integer, ByVal OwnStream As Boolean)

[Pascal]
    procedure CreateNew(FileName : string; Version : integer);
    procedure CreateNew(Stream : TStream; Version : integer);
    procedure CreateNew(Stream : TStream; Version : integer; OwnStream : boolean);

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

[PHP]
    void CreateNew(string $FileName, integer $Version)
    void CreateNew(TStream $Stream, integer $Version)
    void CreateNew(TStream $Stream, integer $Version, bool $OwnStream)

[Java]
    void createNew(TElStream Stream, int Version);
    void createNew(TElStream Stream, int Version, boolean OwnStream);
    void createNew(String FileName, int Version);

Parameters

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

Description

    Use this method to create a new compound file on the disk or in the memory stream.

See also:     Close     Flush     Open     FileVersion    

Discuss this help topic in SecureBlackbox Forum