File.write() (Method)

Writes a string of data out to the file.


JavaScript - 1.1
Netscape Enterprise Server - 2.0
Property/method value type:Boolean primitive
JavaScript syntax:NESmyFile.write(aString)
Argument list:aStringSome text to be written to the file

As the string is written to the file, the method will return a Boolean value that indicates success or failure of the write access.

The length of the content is the controlling factor here. This might be used to write individual fields of a variable length record structure or, if you have loaded the string value you intend to write with a fixed length value, you can use this to write fixed length data to a file.

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