Register to post in forums, or Log in to your existing account
 

 Related 
Contents
File Commands
  #CLOSE
  #ERASE
  #FILE
  #FTP
  #IMAGE
  #LOG
  #READ
  #RESET
  #SEND
  #TYPE
Command Reference
  #
  #ABORT
  #ACTION
  #ADD
  #ADDITEM
  #ADDKEY
  #AFK
  #ALARM
  #ALIAS
  #ALL
  #BACKUP
  #BEEP
  #BREAK
  #BUTTON
  #C-
  #C+
  #CALL
  #CAPTURE
  #CASE
  #CHARACTER
  #CLASS
  #CLOSE
  #CLR
  #COLOR
  #COM
  #CONDITION
  #CONFIGURE
  #CONNECT
  #CR
  #CW
  #DBCLOSE
  #DBDELETE
  #DBFIRST
  #DBGET
  #DBLOAD
  #DBNEXT
  #DBOFFLINE
  #DBONLINE
  #DBPREV
  #DBPUT
  #DBRESET
  #DBSAVE
  #DDE
  #DEFAULT
  #DELCLASS
  #DELITEM
  #DELKEY
  #DELNITEM
  #DESCRIBE
  #DIRECTION
  #DISCONNECT
  #DOOR
  #ECHO
  #ECHOPROMPT
  #EDITOR
  #ERASE
  #EVALUATE
  #EXECUTE
  #FILE
  #FIND
  #FORALL
  #FREEZE
  #FTP
  #FUNCTION
  #GAG
  #GAGBLOCK
  #GAGOFF
  #GAGON
  #GALIAS
  #GAUGE
  #GVARIABLE
  #H-
  #H+
  #HELP
  #HIGHLIGHT
  #HISTORY
  #HOST
  #IF
  #IGNORE
  #IMAGE
  #INPUT
  #KEY
  #KILLALL
  #LAUNCH
  #LMAP
  #LOAD
  #LOG
  #LOOK
  #LOOP
  #LOOPDB
  #LOOPVIEW
  #MAKEROOM
  #MAKEWINDOW
  #MAP
  #MAPQUERY
  #MARK
  #MATH
  #MEDIA
  #MENU
  #MERGE
  #MESSAGE
  #MOVE
  #MSS
  #MXP
  #MXPTRIG
  #NAME
  #NEW
  #NODEF
  #NODIR
  #NOMAP
  #NOOP
  #OK
  #ONINPUT
  #PATH
  #PATHHIGH
  #PAUSE
  #PCOL
  #PICK
  #PLAY
  #PLUGIN
  #PORTAL
  #PRIORITY
  #PROMPT
  #PSUB
  #PW
  #QUERY
  #QUEUE
  #READ
  #RECALL
  #RECORD
  #REGEX
  #RENAME
  #REPEAT
  #RESET
  #RESUME
  #RETRACE
  #SAVE
  #SAY
  #SAYPROMPT
  #SCRIPT
  #SCROLL
  #SEND
  #SENDPROMPT
  #SESSION
  #SET
  #SETPROMPT
  #SHOW
  #SHOWARR
  #SHOWDB
  #SHOWPROMPT
  #SLOW
  #SS
  #STATE
  #STATUS
  #STEP
  #STOP
  #STWIN
  #SUBSTITUTE
  #SUSPEND
  #T-
  #T?
  #T+
  #TAB
  #TAG
  #TELEPORT
  #TEMP
  #TIMER
  #TRIGGER
  #TSET
  #TYPE
  #TZERO
  #UNALIAS
  #UNBUTTON
  #UNCLASS
  #UNDIR
  #UNGAG
  #UNKEY
  #UNMENU
  #UNPORTAL
  #UNTAB
  #UNTIL
  #UNTRIGGER
  #UNVAR
  #UNWATCH
  #URL
  #VARIABLE
  #VERBATIM
  #VERSION
  #VIEW
  #WAIT
  #WALK
  #WATCH
  #WHILE
  #WINDOW
  #WIZLIST
  #WRAP
  #WRITE
  #YESNO
#WRITE [[#WRI]] 
WRITE

Syntax: #WRI n value [rec]
Related: #READ

Write a value to the nth file. If n is 1-5 then the file is a text file, and the value is appended to the end - rec is ignored. If n is 6-10, then the file is structured, and value is written to the record given by rec. If rec is zero or omitted, value is appended to the file.

WRITE examples

#FILE 1 log.txt
#WRI 1 {logged onto Dark Castle}
append the string to the end of text file number 1.

#FILE 6 rec.fil
#WRI 6 {this is record 3} 3
writes the string as the third record in file 6.
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net