| Applying science to business management |
  
appendtxt
Format: appendtxt( data, file )
Arguments: [any] data Matrix of numeric or text
values
(text) file Name of the file to write
Returns: [any] The value of data
Description: Appends the value of the matrix data
to file in tab-delimited format.
Tab-delimited files are text files containing a one- or
two-dimensional array of values separated by tabs. Each record in
the file is a column vector.
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: x:=[[1,2,3],[4,5,6]]
writetxt(x,"temp.txt") = create
file temp.txt containing x
y:=["a","b","c"]
appendtxt(y,"temp.txt") = append
y to temp.txt
readtxt("temp.txt") =
[[1,2,3],[4,5,6],[a,b,c]]
read("temp.txt") =
1 2 3
4 5 6
a b c
See Also: append, appendcsv, writetxt, readtxt
|