Maptitude GISDK Help

WriteArray()

Summary

Writes the elements of an array to a text file.

 

Syntax

WriteArray(file file_ptr, array a)

 

Argument Contents
file_ptr A file handle
a An array of strings and numbers

 

Notes

Example

list = {"Eric", "Mary", "Aaron", 275, "Howard"}

ptr = OpenFile("listfile.txt", "w")

WriteArray(ptr, list)

CloseFile(ptr)

 

Error Codes

Error Type Meaning
Error File is not open, is open in read-only mode, or is a binary file

 

See Also

Function Summary
OpenFile() Opens a text or binary file on disk
ReadArray() Reads a text file into an array of strings
ReadSizedArray() Reads a group of strings from a file
SaveArray() Saves an array to a file
WriteArraySeparated() Writes the elements of an array to a file, separated by a delimiter

 

 

©2025 Caliper Corporation www.caliper.com