Parse data from file.