title: Search string from text file and display selected line
body: <p>Im new to C#, now rushing on a airTicket Booking System project.
  I have to search the booking number from a text file and display the booking detail.</p>
  
  <p>This will be my record in the text file.</p>
  
  <blockquote>
    <p>Booking Number :KW2MSMB30</p>
    
    <p>Name           :Testing</p>
    
    <p>Age            :21</p>
    
    <p>Passport Num   :Testing</p>
    
    <p>Airline        :Malaysia Airline</p>
    
    <p>Depart from    :malaysia</p>
    
    <p>Return to      :singapore</p>
    
    <p>Departure date :Wednesday, 19 February 2014</p>
    
    <p>Return date    :Null</p>
    
    <p>Travaller      :1 (Adult) 1 (Children) 1 (Infant) </p>
    
    <p>Service Class  :Business Class</p>
    
    <p>Trip:           One Trip</p>
  </blockquote>
  
  <p>After i key in the booking number and click on the OK button, it will show up the detail on a label.</p>
  
  <p>This is what my code:</p>
  
  <pre><code>int counter = 0; string line;
          bool writeNextLine = false;
          StringBuilder sb = new StringBuilder();
  
          // Read the file and display it line by line.              
          using (System.IO.StreamReader file = new System.IO.StreamReader("record.txt"))
          {
              while ((line = file.ReadLine()) != null)
              {
                  if (line.Contains(txt_SearchBooking.Text))
                  {
                      // This append the text and a newline into the StringBuilder buffer       
                      sb.AppendLine(line.ToString());
  
                      lbl_result.Text += sb.ToString();
                  }
  
              }
          }
  </code></pre>
  
  <p>But this only show up my first line which is the booking number.
  what i should do to show up all the detail?</p>
  
  <p>Sorry for my poor english, hope you guys understand this.</p>