Create a new file or overwrite an existing file.
Syntax
object.CreateFile( RemoteFile )
Parameters
- RemoteFile
- A string which specifies the name of the file to create on the
server. The file pathing and name conventions must be that
of the server.
Return Value
A value of zero is returned if the operation was successful,
otherwise a non-zero error code is returned which indicates the cause
of the failure.
Remarks
The CreateFile method creates a new file on the
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
CloseFile Method,
OpenFile Method, Write
Method
|