File API examples
The following are file API examples.
ChangeProtection
Demonstrates how to change the protection mode of a file.
CopyFile
Demonstrates how to copy an existing file.
DKOpen and DKClose
Demonstrates how to access a text file.
DKRead and DKWrite
Demonstrates how to read and write a file.
DKSize
Demonstrates how to retrieve the size of a file.
DKTruncate
Demonstrates how to truncate a file.
FDDereference, FDReference, and FDReferenceCount
Demonstrates how to determine reference count on a file.
FDFilename
Demonstrates how to retrieve the name of a file from a file handle.
FDFlags
Demonstrates how to retrieve information on file attributes.
FDType
Demonstrates how to retrieve the type of an opened file.
LockFile
Demonstrates how to lock a file.
TEXTClose and TEXTOpen
Demonstrates how to open and close a text file.
TEXTExport and TEXTImport
Determines how to export and import text from a file.
TEXTOpen
Demonstrates how to open a text file.
UnlockFile
Demonstrates how to unlock a file.
Parent topic:
EASI scripting examples
Previous topic:
Variable API examples
Next topic:
Database API examples
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.