MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference page 83

Server-side actionscript language reference
Table of Contents

Advertisement

Description
Property (read-only); a string specifying the type of data or encoding used when a file is
opened. The following strings are supported:
undefined for directories and closed files. If the file is opened in "text" mode and UTF-8
BOM (Byte Order Mark) is detected, the
File.write()
Availability
Flash Media Server 2.
Usage
fileObject.write(param0, param1,...paramN)
Parameters
param0, param1,...paramN
Returns
A Boolean value indicating whether the write was successful (
Description
Method; writes data to a file. The
then writes it to the file without separators.
The file contents are buffered internally. The
file on disk.
Example
The following example writes "Hello world" at the end of the
if (myFileObject.open( "text", "append") ) {
myFileObject.write("Hello world");
}
See also
,
File.writeAll()
File.writeByte()
,
"text"
property is set to
type
Parameters to write to the file.
method converts each parameter to a string, and
write()
File.flush()
,
File.writeln()
, and
"utf8"
"binary"
.
"utf8"
) or not (
true
method writes the buffer to the
myFileObject
. The property is
).
false
text file:
File class
83

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash media server 2

Table of Contents