You can read in the first 500 elements like this: data = ToExpression@ReadList["myfile.txt", Record, 500, RecordSeparators -> " "]