Home > @rushstack/node-core-library > FileWriter
API for interacting with file handles.
export declare class FileWriter
|close()||Closes the file handle permanently. No operations can be made on this file handle after calling this. Behind the scenes it uses |
|open(filePath, flags)||Opens a new file handle to the file at the specified path and given mode. Behind the scenes it uses |
|write(text)||Writes some text to the given file handle. Throws if the file handle has been closed. Behind the scenes it uses |