Maptitude GISDK Help |
Writes the elements of an array to a file, separated by a delimiter.
WriteArraySeparated(file file_ptr, array a, string delim, string quote)
Argument |
Contents |
file_ptr |
A file handle |
a |
An array of strings, numbers, and sub-arrays |
delim |
Indicates the character to use to delimit one element of the array from another in the file |
quote |
Indicates the character to use to mark the beginning and end of strings in the file |
Only the first character of delim and quote are used; subsequent characters are ignored.
If delimiter is null, the array elements are adjacent to each other in the line of the output file.
If quote is null, strings are not quoted in the output file.
As a special case, if any element of the array is a subarray, the second element of the subarray is written to the file. This is useful for writing the values of a record as returned by GetRecordValues().
Array elements which are not strings, numbers, or arrays are written as spaces; e.g., a null is written as a space.
WriteArraySeparated(fptr, rec_vals, ",", "\"")
Error Type |
Meaning |
Error |
The file handle is invalid |
Function |
Summary |
Writes the elements of an array to a file |
|
Reads the values of one or more fields for a record in a view |
©2025 Caliper Corporation | www.caliper.com |