Flash Media Server |
|||
| Server-Side ActionScript Language Reference > Server-Side ActionScript Language Reference > File class > File.close() | |||
Flash Media Server 2.
fileObject.close()
None.
A Boolean value indicating whether the file was closed successfully (true) or not (false).
Method; closes the file. Returns false if the file is not open. This method is called automatically on an open File object when the object is out of scope.
The following code closes the /path/file.txt file:
if (x.open("/path/file.txt", "read") ){
// Do something here.
x.close();
}