spearte read and write