node write file fs code example Example: writefile in node js fs.writeFile('2pac.txt', 'Some other lyric', 'ascii', callback);