HOW TO
The following Avenue script displays an ASCII text file in a pop-up window.
Code:
myFile = LineFile.Make("<ascii_text_file_name".AsFilename,#FILE_PERM_READ)
VeryLongString = myFile.ReadElt
while (myFile.IsAtEnd.Not)
VeryLongString = VeryLongString + NL + myFile.ReadElt
end
myFile.Close
MsgBox.Report(VeryLongString,"")
Note:
Replace the text "<ascii_text_file_name>" with the path to the text file you would like view.
Article ID:000003977
Get help from ArcGIS experts
Download the Esri Support App