new(type,args) |
-> |
new type(args) |
Val = savefile.Read(Dir) |
-> |
savefile >> Val |
savefile.Write(Val,Dir) |
-> |
savefile << Val |
file()
function now returns a valid file reference when
given a text path on the server. For example, if there is a file called
"help.html" in the same directory that the world is being run off, the server
could refer to it as a file by doing var/F = file("help.html")
. This
could then be passed to a user through one of a number of output functions, such as:
usr << run(F) |
:: | Execute F with the appropriate program (requires client permission) |
usr << ftp(F) |
:: | Download F to the user's machine |
usr << browse(F) |
:: | Display F in the internal client browser |
F >> Val |
:: | Read contents of F into Val as a text string |
F << Val |
:: | Write Val to F as a text string |