Implements File.read in Node.js environment