Home > @rushstack/node-core-library > FileWriter
FileWriter class
API for interacting with file handles.
Signature:
export declare class FileWriter
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| string | The |
Methods
Method | Modifiers | Description |
|---|---|---|
Closes the file handle permanently. No operations can be made on this file handle after calling this. Behind the scenes it uses | ||
Gets the statistics for the given file handle. Throws if the file handle has been closed. Behind the scenes it uses | ||
| Opens a new file handle to the file at the specified path and given mode. Behind the scenes it uses | |
Writes some text to the given file handle. Throws if the file handle has been closed. Behind the scenes it uses |