filer/issue-473

9 lines
273 B
Plaintext
Raw Normal View History

2018-09-24 20:42:12 +00:00
```
const data = new Uint8Array(Buffer.from('Hello Node.js'));
2018-09-24 20:48:30 +00:00
fs.writeFile('message.txt', gettext("Hello World"), (err) => {
2018-09-24 20:42:12 +00:00
if (err) throw err;
console.log('The file has been saved!');
});
```
https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback