Implemented sync reading fro file