Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > FileWriter > close

FileWriter.close() method

Closes the file handle permanently. No operations can be made on this file handle after calling this. Behind the scenes it uses fs.closeSync() and releases the file descriptor to be re-used.

Signature:

close(): void;

Returns:

void

Remarks

The close() method can be called more than once; additional calls are ignored.