really read data from file for write