read dataset from file