Flash Media Server |
|||
| Server-Side ActionScript Language Reference > Server-Side ActionScript Language Reference > File class > File.write() | |||
Flash Media Server 2.
fileObject.write(param0,param1,...paramN)
param0, param1,...paramN Parameters to write to the file.
A Boolean value indicating whether the write was successful (true) or not (false).
Method; writes data to a file. The write() method converts each parameter to a string, and then writes it to the file without separators.
The file contents are buffered internally. The File.flush() method writes the buffer to the file on disk.
The following example writes "Hello world" at the end of the myFileObject text file:
if (myFileObject.open( "text", "append") ) {
myFileObject.write("Hello world");
}
File.writeAll(), File.writeByte(), File.writeln()