Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > open() |
![]() ![]() ![]() |
open()
Syntax
file("whichFile
").open( {[#read:TrueOrFalse
, #write:TrueOrFalse
, #create:TrueOrFalse
]} )
Description
Multiuser Server server-side command; opens the specified file. The optional parameters are formatted as a property list. Set #read
to TRUE
(the default) to enable reading from the file. Set #write
to TRUE
to enable writing to the file. The default value for #write
is FALSE
. Set #create
to TRUE
to create the file if it does not yet exist. The default value for #create
is FALSE
.
Example
This server-side statement opens the file LongSpeech.txt with reading and writing enabled:
file("C:\Text_files\LongSpeech.txt").open([#read: 1, #write: 1, \ #create: 0])
![]() ![]() ![]() |