top

readAll

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 the whole content of the opened file.

The readAll class reads the whole content of the opened file.

readAll
Syntax fileObj.readAll();
Parameter None
Return Value
(String)
whole contents of the file
Remarks None
Example
var fileSystemObj = new FileSystem();
var fileObj = fileSystemObj.openCommonFile(curWidget.id + '/testFile.data', 'r');
var strResult = fileObj.readAll();
alert(strResult);
Enumeration None