Writing into a table from a text file?

What I aim to achieve is to write in two values into a multi-dimensional array

i need to store a value and a corresponding date

I am under the assumption that when i write out to the document I can place the value on one line then the corresponding date a line beneath it

But how would I write that back into an array?

ive attached what ive written so far but im really not sure how to do it, the idea of how ive done it comes from c++ and i doubt it would work the same