Hi, I have been set an assignment where i have to work out mileage price ect from the following chart which is stored as a text file ( data.txt )

London Bath Cardiff Carlisle Durham Exeter Leeds Norwich Truro York
London - 23 12 89 456 123 46 732 345 123
Bath 23 - 46 234 123 46 89 234 567 90
Cardiff 12 46 - 767 456 46 234 123 732 35
Carlisle 89 234 767 - 732 32 48 67 98 100
Durham 456 123 456 732 - 234 46 89 89 732
Exeter 123 46 46 32 234 - 123 46 123 234
Leeds 46 89 234 48 46 123 - 46 89 19
Norwich 732 234 123 67 89 46 46 - 123 732
Truro 345 567 732 98 89 123 89 123 - 78
York 123 90 35 100 732 234 19 732 78 -

The problem which im trying to over come is that i need to read in all the data into an array and be able to output it on screen fortmated and i need to be able to use it to work out distances ect i have been up trying for hours and hours just tring to get the program to read in from the text file and output it on screen in the grid

i think i need like some sort of 2d string array which can read in and store the data
can anyone help me ?


thankoyu