Read data from file.