TEXTMODE Function (File)
Sets whether a file should be opened as an ASCII file or a binary file. Also determines what the current setting of this option is for a file.
[IsTextmode := File.TEXTMODE([SetTextmode])
Specifies the file
Specifies the mode in which the file will be opened when File.OPEN is called.
If SetTextmode is true, the file will be opened as an ASCII file. If SetTextmode is false, the file will be opened as a binary file.
Property Value/Return Value
The current setting of this option for the file.
true if the file will be opened as an ASCII file; otherwise, false if the file will be opened as a binary file.
This function should be used before File.OPEN is used to open the file. In Microsoft Dynamics NAV 2009, if you use this function on a file that is already open, an error will occur.