Maptitude GISDK Help

ReadArray()

Summary

Reads a text file into an array of strings.

 

Syntax

result = ReadArray(file fptr)

 

Argument

Contents

fptr

A file handle

 

Returns

An array of strings, one for each line in the file.

 

Notes

Example

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

a = ReadArray(ptr)

CloseFile(ptr)

 

Error Codes

Error Type

Meaning

Error

File is not open, is open in the wrong mode, or is a binary file

 

See Also

Function

Summary

LoadArray()

Loads an array from a file

OpenFile()

Opens a text or binary file on disk

ReadSizedArray()

Reads a group of strings from a file

WriteArray()

Writes the elements of an array to a text file

WriteArraySeparated()

Writes the elements of an array to a file, separated by a delimiter

 

 

©2025 Caliper Corporation www.caliper.com