string :f-write ( file $FILE, mixed $… )
Takes any number of arguments and writes then to FILE, in a left-to-right order. Arrays and dictionaries are printed the same way as if they were converted to a string - array(size)
or dict(size)
. Contrary to string-casting, literal NIL values will be printed as {NIL}
.
Value returned is always an empty string. Newline encoding is platform-dependent.
The file should be either in append or rewrite mode. Otherwise, the function will silently fail.
# :f-write example :set &f :f-rewrite s'example.txt' :f-write $f s'Current time: ' :dt-str :f-write $f :chr i10 :f-close $f
wikipage modified on 2014/0609/2240