File.writeByte() (Method)

Writes a single byte to the file.

Availability:

JavaScript - 1.1
Netscape Enterprise Server - 2.0
JavaScript syntax:NESmyFile.writeByte(aNumber)
Argument list:aNumberThe value of a byte to be written to the file

This is the complement of the readByte() method which is used to write a continuous stream of character bytes to a file. This imposes no structure on the file other than that which you contrive with your JavaScript code.

See also:File.flush(), File.readByte(), File.write(), File.writeln()