I need to read a file with lines like this:
LastName, FirstName MiddleName ID# (integers)
I want to be able to scan the LastName, FirstName, and MiddleName into one string without scanning the ID# and various integers after them.
What is the best way to do this? I've though about scanning each name individually but I need to print the names out in a 26-digit space, for example:
Code:
Griffin, Peter Lowenbrau 123456789 5 7 3 4 6 4
would be the input and I want to later print out:
Code:
Griffin, Peter Lowenbrau 123456789 5 7 3 4 6 4
notice the left-justified string with 26-spaces available.