File.writeln() (Method)

Writes a string and automatically place a newline character after it in the file.

Availability:

JavaScript - 1.1
Netscape Enterprise Server - 2.0
JavaScript syntax:NESmyFile.writeln(aString)
Argument list:aStringSome text to be written to the file

This method is functionally very similar to the write() method. In this case however, an additional trailing newline character is added by the method automatically. You could append the newlines yourself and use the write() method instead.

Use this technique to write variable length records to a file.

See also:File.flush(), File.write(), File.writeByte()