title: Calculate the total number of participants and the total for slot 1, 2, 3
body: <p>so I've got this problem.
  My text file has this layout:
  Name of a person
  Phone number
  Time slot</p>
  
  <p>I have to calculate the total number of participants of that file and the registered participants of slot 1,2,3 any help please?</p>
  
  <p>e.g.:   </p>
  
  <pre><code> Manchester Event Information
   Total Registered Participants: 10
   Registered Participants for Slot 1:   6
   Registered Participants for Slot 2:   2
   Registered Participants for Slot 3:   2
   Participant 1 Name: Tom Jones
   Participant 2 Name: Katy Perry
  
  
  
  static void displayRegisteredParticipants() 
  {                    
      string sValidLocation;            
      int iIndex;            
  
      Console.WriteLine("Please enter the location you wish to view data for.");
      sValidLocation = Console.ReadLine();
  
      switch (sValidLocation)
      {
          case "London":
              if (File.Exists("London.txt"))
              {
                  Console.WriteLine("Location exists");
                  Console.WriteLine();
              }  
              else
              {
                  Console.WriteLine("Location not found, please try again");
                  sValidLocation = Console.ReadLine();
                  Console.WriteLine();
              }
  
              Console.WriteLine( "*  " + sValidLocation + " Event Information");
              Console.WriteLine();
              using (StreamReader sr = new StreamReader("London.txt"))
              {
  
                  string sReadName = sr.ReadLine();
                  string sReadPhoneNo = sr.ReadLine();
                  int iReadTimeSlot = Convert.ToInt32(sr.ReadLine()); 
  
              }
              break;
  </code></pre>