File class
67
Constructor for the File class
Availability
Flash Media Server 2.
Usage
fileObject
= new File(
name
)
Parameters
name
Specifies the name of the file or directory. The name can contain only UTF-8 encoded
characters; high byte values can be encoded using the URI character- encoding scheme. The
specified name is mapped to a system path using the mappings specified in the
Application.xml file. If the path is invalid, the
name
property of the object is set to an empty
string, and no file operation can be performed.
Returns
A File object if successful; otherwise,
null
.
Description
Constructor; to create an instance of the File class, use the standard syntax for object creation.
Example
The following code creates an instance of the File class:
var errorLog = new File("/logs/error.txt");
File.canAppend
Availability
Flash Media Server 2
Usage
fileObject
.canAppend
Description
Property (read-only); a Boolean value indicating whether a file was open for appending (
true
)
or not (
false
). The property is undefined for closed files.