I\'m using node + express and I am just wondering how I can import any file as a string. Lets say I have a txt file all I want is to load it into a variable as such.
you'll have to use readFile function from filesystem module.
readFile
filesystem
http://nodejs.org/docs/v0.3.1/api/fs.html#fs.readFile