Hey!
I've a text file (database.db) looking like this:
Code:
firstname1 lastname1 town1 country1 number1
firstname2 lastname2 town2 country2 number2
firstname3 lastname3 town3 country3 number3
firstname4 lastname4 town4 country4 number4
...
And I want to read each column in each row into a two dimensional array, so the result looks like this:
Code:
array {
array {firstname1, lastname1, town1, country1, number1},
array {firstname2, lastname2, town2, country2, number2},
array {firstname3, lastname3, town3, country3, number3},
array {firstname4, lastname4, town4, country4, number4},
...
}
How can I do this in C?
Thanks!
With regards,
Simon