File.classPrototype.constructor

Instance of

Function

Parameters

[path /*String*/]

Return value

this

Description

Optionally opens file specified by the path.

Example

File().create("abc.txt").write("abc");
console.write(File("abc.txt").read());

Expected output

abc