File.classPrototype.create
- Instance of
- Parameters
-
path /*String*/
- Return value
-
/*File*/
Description
Creates (or open and remove contents) file in the specified path. If the file object was already associated with existing file close it first.
Example
let file = File();
file.create("protocols.txt");
file.remove();
try {
file.open("protocols.txt");
} catch {
console.write("error");
}
Expected output
error