Read write from file