Browse Source

readFile/writeFile to read/write in file library.

as suggested by Bluebie.
v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
9cd7864fd9
  1. 4
      lib/file.js

4
lib/file.js

@ -12,9 +12,9 @@ function debugObject (obj) {
}
}
exports.readFile = node.fs.cat;
exports.read = node.fs.cat;
exports.writeFile = function (filename, data, encoding) {
exports.write = function (filename, data, encoding) {
var promise = new node.Promise();
encoding = encoding || "utf8"; // default to utf8

Loading…
Cancel
Save