| Previous | Next | |
STF.readString(fileName:String) : StringfileName - Name of the file to read. If no path is specified, the working directory is used.
A string.; ; This value is returned as a parameter to the registered callback. See the example below or STF.registerCallBack() for more information on return variable handling.
Method; Reads the contents of the specified file into a string.
The following example reads the contents of a file.
var content:String;
onReadStringReturn = function(returnValue:String) { // define callback
content = returnValue;
}
STF.registerCallBack("readString", onReadStringReturn, this); // register callback function
STF.readString("File.txt");STF.writeString(), STF.appendString()
| Questions or Feedback? | Previous | Next |