Vanguard Software
Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
 
Applying science to business management

contents.gifindex.gifprev1.gifnext1.gif

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

  Demand Planning  |  Financial Forecasting
Forecasting Software  |  Strategic Planning Software  |  Decision Tree Software
Decision Support Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2011 Vanguard Software Corporation
Print this page   Email this page to a friend