file i/o using readSync