SocketTools .NET Edition

FtpClient.CreateFile Method 

Create a new file or overwrite an existing file.

[Visual Basic]
Public Function CreateFile( _
   ByVal remoteFile As String _
) As Boolean
[C#]
public bool CreateFile(
   string remoteFile
);

Parameters

remoteFile
A string which specifies the name of the file to create on the remote server. The file pathing and name conventions must be that of the remote host.

Return Value

This method returns a Boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.

Remarks

The CreateFile method creates a new file on the remote server using the specified file name. The Write method may then be used to copy data to the open file. The user must have the appropriate permission to create the file on the server

See Also

FtpClient Class | SocketTools Namespace