Last active
September 23, 2015 11:24
-
-
Save matsuhisa/7eccc33cfb10298c3aac to your computer and use it in GitHub Desktop.
phantom.js を使ってファイルへの書き込みを行う。node.jsの機能?http://blog.codebook-10000.com/entry/20130730/1375204497 http://phantomjs.org/api/fs/method/write.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var path = 'output.txt'; | |
var content = "日本語\t日本語\n2行目です"; | |
fs.write(path, content, 'w'); | |
phantom.exit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment