File.writeln()

Availability

Flash Media Server 2.

Usage

fileObject.writeln(param0, param1,...paramN)

Parameters

param0, param1,...paramN Strings to write to the file.

Returns

A Boolean value indicating whether the write was successful (true) or not (false).

Description

Method; writes data to a file and adds a platform-dependent end-of-line character after the last parameter.

The file contents are buffered internally. The File.flush() method writes the buffer to the file on disk.

Example

The following example opens a text file for writing and writes a line:

if (fileObj.open( "text", "append") ) {
    fileObj.writeln("This is a line!");
} 

See also

File.write(), File.writeAll(), File.writeByte()