I have a .txt file which contains 3 columns of data. Each column represents a integer to be used to set a read write flag, a hexadecimal number used to represent a memory location and a hexadecimal number used to represent a byte/word of data respectively. They are all separated from each other by a single white space.
An example to illustrate the format is as follows:
I need to place this data in a two dimensional array of 3 columns and some user specified number of rows. The trouble is that I have been unable to read the data in as integers, I have only found examples for dealing with strings, for example the getline(file, string) function. Is there an equivalent function defined somewhere for passing a stream of integers into an array? Or should it be done as a set of characters?