Discuss this help topic in SecureBlackbox Forum


TElSimpleSFTPClient     See also     

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

Creates new file on a server side.


    TSBSftpFileHandle CreateFile(string Filename);
    TSBSftpFileHandle = byte[]

    Function CreateFile(ByVal Filename As String) As TSBSftpFileHandle
    TSBSftpFileHandle As Byte()

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

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

    string CreateFile(string $Filename)


  • Filename - name of the newly created file


    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