Parse the data from text file.