Slide 13
Slide 13 text
レンダラプロセスからファイル操作を実装する
fs.writeFileSync(file, data[, options])
#
History
● file | | | filename or file descriptor
● data | | | |
● options |
○ encoding | Default: 'utf8'
○ mode Default: 0o666
○ flag See support of file system flags. Default: 'w'.
Returns undefined .
If data is a plain object, it must have an own (not inherited) toString function property.
The mode option only affects the newly created file. See fs.open() for more details.
For detailed information, see the documentation of the asynchronous version of this API: fs.writeFile() .