Javascript File isOpen

From FreeSWITCH Wiki
Jump to: navigation, search

Contents

Description

A boolean whether or not the file is open

Synopsis

isOpen

Example

var fd = new File("/tmp/blah");
console_log("Is the file open? " + fd.isOpen + "\n");
fd.open("read");
console_log("Is the file open? " + fd.isOpen + "\n");
fd.close();

See Also