9
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

fs によるファイル上書きと追記の例

Posted at
fs = require('fs');
data = "上書き";
fs.writeFile 'ufufu.txt', data , (err) ->
    console.log  err
fs = require('fs');
data = "追記";
fs.appendFile 'ehehe.txt', data ,'utf8', (err) ->
    console.log err
清水俊博,大津繁樹,Jxck,小林秀和,佐々木庸平,篠崎祐輔,高木敦也,西山雄也 アスキー・メディアワークス 2012-10-26
9
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?