This example illustrates how to compose an array with three lines and write it to a file.
local string file_name
local mstring creport
local mstring vlist
local integer i
vlist[1] = "The first line."
vlist[2] = "The second line."
vlist[3] = "The third line."
file_name = TmpNam()
call TEXTExport( file_name, vlist )
creport = TextImport( file_name )
for i = 1 to 3
print creport[i]
endfor
del file_name
The first line. The second line. The third line.
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.