Discuss this help topic in SecureBlackbox Forum

TElSimpleSFTPClient.CreateFile

TElSimpleSFTPClient     See also     


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


Creates new file on a server side.

Declaration

[C#]
    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)

[Java]
    byte[] 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