📜  写入文件 js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:32.879000             🧑  作者: Mango

代码示例3
'use strict'

const fs = require('fs');

let fileContent = 'I can write';
fs.writeFileSync('message.txt', fileContent);