User Guide

492 Chapter 12: Methods
Parameters
None.
Example
This statement creates a child object called RedCar from the parent script CarParentScript
without initializing its properties:
RedCar = script("CarParentScript").rawNew()
This statement initializes the properties of the child object RedCar:
RedCar.new()
See also
new(), script()
readChar()
Usage
-- Lingo syntax
fileioObjRef.readChar()
// JavaScript syntax
fileioObjRef.readChar();
Description
Fileio method; Reads the next character of a file and returns it as an ASCII code value.
You must first open a file by calling
openFile() before using readChar() to read a character.
Parameters
None.
See also
Fileio, openFile()
readFile()
Usage
-- Lingo syntax
fileioObjRef.readFile()
// JavaScript syntax
fileioObjRef.readFile();
Description
Fileio method; Reads from the current position to the end of a specified file, and returns the result
as a string.
You must first open a file by calling
openFile() before using readFile() to read a file.
Parameters
None.