Home > @rushstack/node-core-library > FileWriter > write
FileWriter.write() method
Writes some text to the given file handle. Throws if the file handle has been closed. Behind the scenes it uses fs.writeSync()
.
Signature:
write(text: string): void;
Parameters
Parameter | Type | Description |
---|---|---|
text | string | The text to write to the file. |
Returns:
void