File.writeByte()

Availability

Flash Media Server 2.

Usage

fileObject.writeByte(number)

Parameters

number The numeric value to write.

Returns

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

Description

Method; writes a byte to a file.

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

Example

The following example writes byte 65 to the end of the myFileObject file:

if (myFileObject.open("text","append")) {
    myFileObject.writeByte(65);
} 

See also

File.write(), File.writeAll(), File.writeln()