What causes fs.readFile not to execute callback function

  node.js, question

Just doing a batch processing tool, there is a file path, butfs.readFileNo callback.fs.createReadStreamNo data has been received either.

Fs.readFile is done in a Stream. Later changed tofs.readFileSyncJust go ahead. I don’t know much about it. Have you encountered any similar problems?

 console.log("readed");  // xxx exists but the callback function is not executed
Readfilesync ("xxx")//can

This is an asynchronous function, you have to pass in the callback function to receive the data.