
69
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Returns
A boolean value indicating whether the write operation was successful (true) or not (false).
Example
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()
fileObject.writeAll(array)
Takes an Array object as a parameter and calls the File.writeln() method on each element in the array. The file
contents are buffered internally. The File.flush() method writes the buffer to the file on disk.
Note: The user or process owner that the server runs under in the operating system must have write permissions or this
call can fail.
Availability
Flash Media Server 2
Parameters
array An Array object containing all the elements to write to the file.
Returns
A boolean value indicating whether the write operation was successful (true) or not (false).
File.writeByte()
fileObject.writeByte(number)
Writes a byte to a file. The file contents are buffered internally. The File.flush() method writes the buffer to the file
on disk.
Note: The user or process owner that the server runs under in the operating system must have write permissions or this
call can fail.
Availability
Flash Media Server 2
Parameters
number A number to write.
Returns
A boolean value indicating whether the write operation was successful (true) or not (false).
Example
The following example writes byte 65 to the end of the myFileObject file:
Commentaires sur ces manuels