Read data from a file