From 8d461adb8b0c190027f96248375384b06798124b Mon Sep 17 00:00:00 2001 From: ksandhu16 Date: Mon, 24 Sep 2018 16:42:12 -0400 Subject: [PATCH] Create issue-473 --- issue-473 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 issue-473 diff --git a/issue-473 b/issue-473 new file mode 100644 index 0000000..2c7a4f4 --- /dev/null +++ b/issue-473 @@ -0,0 +1,8 @@ +``` +const data = new Uint8Array(Buffer.from('Hello Node.js')); +fs.writeFile('message.txt', data, (err) => { + if (err) throw err; + console.log('The file has been saved!'); +}); +``` +https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback