top

readLine

Published 2014-10-28 | (Compatible with SDK 2.5,3.5,4.5,5.0,5.1 and 2010,2011,2012,2013,2014 models)

Reads a line in an opened file.

The readLine class reads a line in an opened file.

readLine
Syntax fileObj.readLine()
Parameter None
Return Value
(String)
Returns a line ranging to line feed character as a result. If there is nothing to read, return null.
Remarks None
Example
var fileSystemObj = new FileSystem();
var fileObj = fileSystemObj.openCommonFile(curWidget.id + '/testFile.data', 'r');
var strLine = '';
var arrResult = new Array();

while (strLine = fileObj.readLine()) {
    arrResult.push(strLine);
}
Enumeration None