Opens the file at the given path. Opening flags:
const f = await tjs.open('file.txt', 'r'); Copy
const f = await tjs.open('file.txt', 'r');
The path to the file to be opened.
Flags with which to open the file.
Optional
File mode bits applied if the file is created. Defaults to 0o666.
0o666
Opens the file at the given path. Opening flags: