The OpenFile method opens an existing file or creates a
file on the server using the specified file name. The
Read method may then be used to read data from the file and
the Write method may be used to write data to the file. Once
the all of the data has been read or written, the CloseFile
method must be called to close the data channel.
Only one file may be opened at a time for each client session.
Attempting to perform an action such as uploading or downloading
another file while a file is currently open will result in an error.
Typically this indicates that the application failed to call the
CloseFile method.
It is strongly recommended that most applications use the
GetFile or PutFile methods to perform file transfers.
These methods are easier to use, and have internal optimizations that
improves the overall data transfer rate when compared to implementing
the file transfer code in your own application.