Shayton Equilibrium Kitchen Utensil 2003 Manuel D’Utilisation

Page de 194
MediaScript Objects and Methods 29 
• 
• 
• 
r e a d ( )
Reads the specified line number from the file and returns it as a string. 
NOTE: 
Line numbers start at zero, not at one.
Syntax
<object name>.read(
<index>
);
Parameters
index
 - specifies the line number and can range from 0 to 16,777,215.
r e a d N e x t L i n e ( )
Reads the next line from the file pointed at by the File object, and returns a string 
containing the text in that line. Returns undefined at the end of the file.
Syntax
<object name>.readNextLine();
Parameters
This function takes no parameters.
r e m o v e ( )
Deletes the filename for the File object. 
Syntax
<object name>.remove();
Parameters
This function takes no parameters.
r e n a m e ( )
Renames the File object, changing the name property of the object to the new name.
Syntax
<object name>.rename(
<"newname">
);
Parameters
newname
 - a string containing the new name property. The string must be in quotes. If the 
string does not specify a file system the default is the write file system. See “File Systems” 
on page 14 for mor
e information.