Hi I will read from file and put the numbers which is seperated with white space int different array. Example file to read
15
10 2
20 1
30 1
This is what I did
while(!file.eof()){
file>>first[count++];
}
By doing this I taking line by line but I want to read until white space and put the number after whitespace into different array. As a result array will look like this (assume first and second are dynamic integer arrays)
first={15,10,20,30}
second ={0,2,1,1}