Flash Media Server |
|||
| Server-Side ActionScript Language Reference > Server-Side ActionScript Language Reference > File class > File.writeln() | |||
Flash Media Server 2.
fileObject.writeln(param0,param1,...paramN)
param0, param1,...paramN Strings to write to the file.
A Boolean value indicating whether the write was successful (true) or not (false).
Method; writes data to a file and adds a platform-dependent end-of-line character after the last parameter.
The file contents are buffered internally. The File.flush() method writes the buffer to the file on disk.
The following example opens a text file for writing and writes a line:
if (fileObj.open( "text", "append") ) {
fileObj.writeln("This is a line!");
}
File.write(), File.writeAll(), File.writeByte()