I'm trying to read in a file which is formatted like so:
Char_Array Int
Char_Array Int
.
.
.
There is a single space in between the array and the int. How can I read in from this, and store them into proper variable (type char and int) to be manipulated by a function? They may be single or multiple digit integers.
My thought is to use something like get, and store whatever is retrieved into the char array until the ' ' is met, and store the rest into the int until '\n', but not really sure how to achieve this.