From 8549994c4b9875403d6a6d183353c10d5a140af1 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 22 Sep 2009 17:27:50 +0200 Subject: [PATCH] Add readFile to '/file.js' Thanks Hagen. --- lib/file.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/file.js b/lib/file.js index e024d006535..6cab0fafe7b 100644 --- a/lib/file.js +++ b/lib/file.js @@ -12,6 +12,8 @@ function debugObject (obj) { } } +exports.readFile = node.fs.cat; + exports.writeFile = function (filename, data, encoding) { var promise = new node.Promise();