writeLine

writeLine(sline: String);

The writeLine method of the File class writes the line specified in the sline parameter to the file. A line is delimited by the endOfLine character sequence. The writeLine method automatically opens the file if it is not already open. If the line to be written contains a null value, the line that is written ends at that point.

This method is valid only for files that are opened as text files. An exception is raised if the writeLine method is attempted on a binary file.

If an ANSI version of JADE writes to a Unicode file, the string is automatically converted from ANSI to Unicode before it is written. If a Unicode version of JADE writes to an ANSI file, the string is automatically converted from Unicode to ANSI before it is written.

The maximum size of data that can be written by the writeLine method when the value of the FileNode class usePresentationFileSystem property is set to true is 2G bytes.

If this limit is exceeded, exception 5047 (Invalid record size) is raised.