i have a txt file that contains this data:

200 5
400 10
600 15
1000 20

i have to put them into 2 arrays.
how do i make it so that it checks if the data is increasing?