
MediaScript Objects and Methods 29
•
•
•
•
read()
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.
readNextLine()
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.
remove()
Deletes the filename for the File object.
Syntax
<object name>.remove();
Parameters
This function takes no parameters.
rename()
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 more information.