implemented #fs.readSync