Discuss this help topic in SecureBlackbox Forum

TElSimpleSFTPClient.CreateFile

TElSimpleSFTPClient     See also     


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


Creates new file on a server side.

Declaration

[C#/Java]
    byte[] CreateFile(string Filename);

[VB.NET]
    Function CreateFile(ByVal Filename As String) As Byte()

[Pascal]
    function CreateFile(const Filename: string): TSBSftpFileHandle;
    type TSBSftpFileHandle = ByteArray;

[C++]
    void CreateFile(const std::string &Filename, std::vector<uint8_t> &OutResult);

[PHP]
    string CreateFile(string $Filename)

Parameters

  • Filename - name of the newly created file

Description

    Use this method to create files on a server side.
    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.
    Note that a new file is created without read permission. If it is necessary to read from the newly created file, it should be reopened by OpenFile method in the corresponding mode.

See also:     OpenFile     RemoveFile     Read     Write    

Discuss this help topic in SecureBlackbox Forum