Maptitude GISDK Help |
Writes a string of characters to a text file.
WriteLine(file f, string line)
Argument |
Contents |
f |
The handle of the file |
line |
The string to be written |
WriteLine() adds a carriage return to the text file at the end of the string.
While ReadLine() is limited to reading strings of 5119 characters, WriteLine() has no such limit for writing strings.
ptr = OpenFile("lisfile.txt", "a")
WriteLine(ptr, "Add this line to the file")
Error Type |
Meaning |
Error |
File is not open, is open in read-only mode, or is a binary file |
Function |
Summary |
Closes a file |
|
Reads a string of characters from a text file |
|
Opens a text or binary file on disk |
©2025 Caliper Corporation | www.caliper.com |