Skip to content

Latest commit

 

History

History
76 lines (39 loc) · 1.31 KB

File metadata and controls

76 lines (39 loc) · 1.31 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

Home > @rushstack/node-core-library > FileWriter > open

FileWriter.open() method

Opens a new file handle to the file at the specified path and given mode. Behind the scenes it uses fs.openSync()<></>. The behaviour of this function is platform specific. See: https://nodejs.org/docs/latest-v8.x/api/fs.html\#fs\_fs\_open\_path\_flags\_mode\_callback

Signature:

static open(filePath: string, flags?: IFileWriterFlags): FileWriter;

Parameters

Parameter

Type

Description

filePath

string

The absolute or relative path to the file handle that should be opened.

flags

IFileWriterFlags

(Optional) The flags for opening the handle

Returns:

FileWriter