CloseFile Method  
 

Close the remote file that was opened for reading or writing.

Syntax

object.CloseFile

Parameters

None.

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 CloseFile method closes the file that was created using the CreateFile method, or opened for reading using the OpenFile method.

See Also

CreateFile Method, OpenFile Method