reading required data from file