From 0d1ec5fdbe8e9e162a527e8ce965e6ae680a8101 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 13 Sep 2009 18:31:17 +0200 Subject: [PATCH] API: node.fs.read() takes a normal encoding parameter. Removes node.UTF8, node.RAW, node.ASCII enum versions of the encodings. node.fs.read() now supports "raws" encoding. --- doc/api.html | 4 +--- doc/api.txt | 3 --- doc/node.1 | 10 ++-------- src/constants.cc | 4 ---- src/file.cc | 7 ++----- src/file.js | 4 +--- 6 files changed, 6 insertions(+), 26 deletions(-) diff --git a/doc/api.html b/doc/api.html index 5483bc8..dcae34f 100644 --- a/doc/api.html +++ b/doc/api.html @@ -815,8 +815,6 @@ Read data from the file specified by fd. bytes to read.

position is an integer specifying where to begin reading from in the file.

-

encoding is either node.UTF8 -or node.RAW.