Discuss this help topic in SecureBlackbox Forum


TElSftpClient     See also     

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

Creates new file on a server side.


    bool CreateFile(string Filename);

    Function CreateFile(ByVal Filename As String) As Boolean

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

    bool CreateFile(const std::string &Filename);

    bool CreateFile(string $Filename)


  • Filename - name of the newly created file

Return value

    CreateFile returns True if operation was completed successfully, and False otherwise.
    CreateFileSync returns handle to the newly created file.


    Use CreateFile method to create a file on a server side asynchronously, and CreateFileSync to create a file in synchronous mode. If the file was successfully created, the OnOpenFile event is fired. The OnError event is fired otherwise.

See also:     OpenFile     RemoveFile     Read     Write    

Discuss this help topic in SecureBlackbox Forum