|
Description
TEXTOpen() is used to establish access to a text file.
Call Signature
int TEXTOpen ( string filename [, string access_type] )
Return Value
int
The file handle of the open file. 0 will be returned upon failure.
Arguments
string filename:
Name of text file to access.
[ string access_type ]:
One of "r" for read access, "w" for write access and "a" for append access. This field defaults to "r" for read access if not specified.
Remarks
An access_type of "w" will delete the existing file contents while an access type of "a" will append to the last line of the existing file.
The file handle returned may be used with the TEXTRead() and TEXTWrite() intrinsic functions. Access to a text file is shutdown by calling TEXTClose().
See also
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.