Shayton Equilibrium Kitchen Utensil 2003 User Manual

Page of 194
MediaScript Objects and Methods 25 
• 
• 
• 
n e w   F i l e ( )
The File object needs to be constructed using the new File () constructor.
Syntax
var Test = new File(
<"filename">
);
Parameters
filename
 - specifies a string containing the filename and path with which the object is 
associated. The default is an empty string. The string must be in quotes. If the string does 
not specify a file system the default is the write file system. See 
for more information.
c l e a r ( )
Clears the contents of the file pointed to by the file object, if the file already exists.
Syntax
<object name>.clear();
Parameters
This function takes no parameters.
c l o s e ( )
Closes the file pointer and flushes any output immediately.
Syntax
<object name>.close();
Parameters
This function takes no parameters.