Create issue-473

This commit is contained in:
ksandhu16 2018-09-24 16:42:12 -04:00 committed by GitHub
parent e3a1187ef9
commit 8d461adb8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

8
issue-473 Normal file
View File

@ -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