On Thu, Mar 06, 2014 at 02:14:36PM -0800, Bob Spero wrote:
> I have tried it with sync and still I can not get it in the string but I 
> can get it to console out, it has to be something stupid, I am not sure if 
> I nested it properly or if I cam calling back the ring function.  

fs.readFileSync has a different set of arguments, so beware:

var value = fs.readFileSync('filename');

    vs

var value;
fs.readFile('filename', function (err, v) {
    // Some time later, after the caller has returned.
    value = v;
});

Aria

Attachment: pgpfoQgialm9Q.pgp
Description: PGP signature

Reply via email to