DC_WRITE_FREE Function

Writes the contents of one or more variables to a file in ASCII free format.

Usage

Input Parameters

Returned Value

Keywords

Discussion


NOTE: This function can be used to write data from date/time structures, but not from any other kind of structures.

How the Data is Written to the File


NOTE: Any variable you include in var_list must have been previously created; otherwise, an error occurs.

TIP: If an error does occur, view the contents of the file (using an operating system command) to see how much data was transferred. This will enable you to isolate the portion of the variable list in which the error occurred.

Formatting in the Output File


NOTE: When writing data of type string, each string is written to the file, flanked with a delimiter on each side. This implies that the strings should not contain delimiter characters if you intend to read the file later with the DC_READ_FREE function.

Writing Row-Oriented Data

Writing Column-Oriented Files

Example 1

Example 2

Example 3

Example 4


NOTE: The variable date is shown above as a series of strings, even though it is actually stored in a date/time structure as a series of integer and floating-point values.

Number Template Description
1 MM/DD/YY (/ = delimiter)
-1 HH:MM:SS (: = delimiter)

See Also





doc@boulder.vni.com
Copyright © 1999, Visual Numerics, Inc. All rights reserved.