char *ptr;
for each line
{
ptr=strtok(lineOne," "); // do the initial strtok with a pointer to your string.
//At this point ptr points to the first name
for(number of things in the line using an index variable)
{
ptr=strtok(NULL," "); // at this point ptr points to the last name
if(index==0)
{
continue; //causes the for loop to skip the rest and go to the next iteration
}
else
{
ptr=strtok(NULL," "); // at this point ptr points to one of the integer values,
//index=1 being the first one.... (careful not to get off by one here)
int value=atoi(ptr)
/// stuff the value into your array... etc...
storageArray[index-1]=value; /// or something like this
.....
}
}
}