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.read(), File.writeByte(), File.writeln() |
Prev | Home | Next |
File.stringToByte() | Up | File.writeByte() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |