//Reads the data from the file for seats availibility and stores it ina global array for further use. private void ReadAndStoreData() { StreamReader ReadData; ReadData = File.OpenText("AvailPlaces"); for (int i = 0; i < 10; i++) { for (int j = 0; j < 5; j++) { string temp = ReadData.ReadLine(); result[i, j] = int.Parse(temp); } } ReadData.Close(); }