Ive got a problem with a program im trying to create

I have a file with

Name then 12 real number values continuing down until it reaches maybe a terminator of say xxxxx

eg

Jimmy 12.1 1.2 19.4 19.1 12.1 13.14 74.1 17.8 19.2 1.8 11.6
barry 12.7 14.2 29.4 14.2 19.9 18.5 4.8 14.2 1.2 11.9 12.0
xxxxx

at the moment i can get it to read in the numbers in to an array and calculate the averages for each column

i just cant get it to read in the name at the start of the row.

would any1 be able to advise me on this.

or provide a location to an example