> Perhaps I should have said "using node" instead of "on the server". The node > process needn't be a server. There needn't be a client connecting to it. > > ... > > I know how to use XMLHttpRequest and have already written a loadFile function > using it. But that's only necessary when running in a browser. I have found > XMLHttpRequest implementations for node in npm which I could include, but all > I really want when running in node is for loadFile to load the file from the > local filesystem using fs.readSync or equivalent.
So, why not use fs.readSync? -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
