Description
Property (read-only); a Boolean value indicating whether you can write to a file (
(
).
false
If
was called to open the file, the mode in which the file was opened is
File.open()
respected. For example, if the file was opened in read mode, you can read from the file,
but you cannot write to the file.
File.close()
Availability
Flash Media Server 2.
Usage
fileObject.close()
Parameters
None.
Returns
A Boolean value indicating whether the file was closed successfully (
Description
Method; closes the file. Returns
automatically on an open File object when the object is out of scope.
Example
The following code closes the /path/file.txt file:
if (x.open("/path/file.txt", "read") ){
// Do something here.
x.close();
}
if the file is not open. This method is called
false
) or not
true
) or not (
).
true
false
File class
69
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?