I have to utilize an array for a homework project. I want it to read a line from a file on my hard drive. However, the line starts with words and ends with numbers. I only need to utilize the numbers for a function that I want to pass a value from. I'm sorry if this doesn't make sense. Every example that i've seen for reading from a file into an array is for int and not any type of char, let alone both. Can someone point me in the right direction.
This is what the text file looks like:
Barney Jones 95 83 92 85 87 85 29
Sandra King 99 97 92 91 92 95 32
Josh Harding 0 0 0 0 31 37 30