 |
Purpose
Opens, creates, or sends a file on the FirstClass server, or container in that file, for reading, writing, and/or downloading.
Syntax
ServerFile.OpenFile (Path, OpenConst)
Path |
Specifies a path to a file on the server that is to be opened. The path can include a container within the file. |
OpenConst |
Specifies how to open the file, using one of the following values: |
|
fcRead |
Opens a file for reading If the file can't be found, the call fails. |
|
fcWrite |
Opens a file for writing If the file exists, its content is deleted. If the file doesn't exist, a new file is created. |
|
fcAppend |
Opens a file for appending without removing the EOF marker before writing new data. If the file doesn't exist, a new file is created. |
|
fcUpdate |
Opens a file for both reading and writing. If the file can't be found, the call fails. |
|
fcReadWrite |
Opens an empty file for both reading and writing. If the file exists, its content is deleted. If the file doesn't exist, a new file is created. |
Example
Dim sf as ServerFile
sf.OpenFile ("Mailbox", fcRead)
sf.OpenFile ("Mailbox|John", fcRead)
|  |