replace read-chunk example with fs.readFileSync