why readFile return buffer in Node JS ? what i got at console is <Buffer 30 09 5f 64 65 62 75 67 5f 61 67 65 6e 74 26 31 09 5f 64 65 62 75 67 67 65 72 26 32 09 5f 68 74 74 70 5f 61 67 65 6e 74 26 33 09 5f 68 74 74 70 5f 63 ... > it says i am buffer . and it should be file content get same with readFileSync var file=fs.readFileSync(filePath); i got again buffer , so what is the issue with readFile and readFileSync ? why readFile and readFileSync return buffer instead content ?

Read more