Discuss this help topic in SecureBlackbox Forum


TElSimpleSFTPClient     See also     

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

Creates new file on a server side.


    byte[] CreateFile(string Filename);

    Function CreateFile(ByVal Filename As String) 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)

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