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

contents.gifindex.gifprev1.gifnext1.gif

appendcsv

Format: appendcsv( 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 Comma Separated Value (CSV) format.

CSV format files are text files containing a one- or two-dimensional array of values separated by commas. Each record in the file is a column vector.  All text strings are enclosed in quotation marks in the output file.

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]]

writecsv(x,"temp.txt") = create file temp.txt containing x

y:=["a","b","c"]

appendcsv(y,"temp.txt") = append y to temp.txt

readcsv("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, appendtxt, writecsv, readcsv

  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