openCommonFile
Opens files in common storage area of an application.
The openCommonFile class opens files in common storage area of an application.
openCommonFile | |
---|---|
Syntax | fileSystemObj.openCommonFile(filePath, mode); |
Parameter |
|
Return Value | Browser file object |
Remarks | With this method, all the applications operate on input and output files in the same area. Due to this feature, files used in other applications can have the same name. It is required to create directories using application ID via curWidget.id and execute file operations in the directory. |
Example |
var fileSystemObj = new FileSystem();
var fileObj = fileSystemObj.openCommonFile(curWidget.id + '/testFile.data', 'w');
fileObj.writeAll('something to write.');
fileSystemObj.closeCommonFile(fileObj);
|
Enumeration | None |