Rush StackShopBlogEvents
Skip to main content

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

ParameterTypeDescription
textstringThe text to write to the file.

Returns:

void