| Applying science to business management |
  
write
Format: write( data, file )
Arguments: [any] data Any numeric or text value,
including lists
(text) file Name of the file to write
Returns: [any] The value of data
Description: The value of data is written to file.
If file already exists, it is replaced and its previous
contents will be lost. If file does not exist, it is
created.
If data is a numeric value, it is translated into a
text string as it would be displayed. If data is a list,
all elements in the list are written including a comma separating
each element.
If file does not contain full path information, the
file is assumed to reside in the same directory as the .mdl or
.dsb application file. If you include path information, remember
that backslash characters must be typed twice in text literals
(e.g., "c:\\temp.txt"
instead of "c:\temp.txt").
Examples: write("Text","temp.txt")
= Text (creates the file temp.txt)
append(2+3,"temp.txt") = 5 (appends
5 to temp.txt)
read("temp.txt") = Text5
See Also: writebin,
writecsv, writetxt, append, read, getfile
|