MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE User Manual Page 60

  • Download
  • Add to my manuals
  • Print
  • Page
    / 155
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 59
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
57
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
param0, param1,...paramN Parameters to write to the file.
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.
Page view 59
1 2 ... 55 56 57 58 59 60 61 62 63 64 65 ... 154 155

Comments to this Manuals

No comments