title: Changing the colour of a label, using the label names from a text file. (Visual Basic)
body: <p>I have an array of labels that are supposed to represent seats, when they are clicked they change to green and the names of the green seats are saved to a text file. When the form is loaded again the seats that are booked need to be red, I'm trying to do this by loading the names of the labels from the text file, but it's not currently working. This is my current procedure for loading the names of the booked seats:</p>
  
  <pre><code>    ub LoadSeats()
      If My.Computer.FileSystem.FileExists("Seats.txt") = True Then 'Checks if the seats.txt file is present
          FileReader = New StreamReader("Seats.txt")
          NumOfBookedSeats = FileReader.ReadLine() 'Finds out how many seats have been booked
          For intCounter = 1 To NumOfBookedSeats
              SeatList.Add(FileReader.ReadLine)
              BookedSeat.Name = SeatList(intCounter)
              BookedSeat.BackColor = Color.Red
              BookedSeat.ForeColor = Color.Red
          Next
      Else
          FileWriter = New StreamWriter("Seats.txt")
          FileWriter.WriteLine(0)
          FileWriter.Close()
      End If
  End Sub
  </code></pre>
  
  <p>Any help on how to do this would be appreciated.</p>