| hide_title | true |
|---|---|
| custom_edit_url | |
| pagination_prev | |
| pagination_next |
Home > @rushstack/node-core-library > FileWriter > open
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;|
Parameter |
Type |
Description |
|---|---|---|
|
filePath |
string |
The absolute or relative path to the file handle that should be opened. |
|
flags |
(Optional) The flags for opening the handle |
Returns: