title: How do i use threading in this program?
body: <p>I've written this console application to search for a particular string from a file and see if its present or not.. But i want to open only the file in the main program. And include 10different threads to find 10 different words simultaneously.. I tried using the thread but i didnt get it right.. How do i do it? could someone help me with the code? This is my program..</p>
  
  <pre><code>class Program
  {
      static void Main(string[] args)
      {
          Thread T = new Thread(Finding);
          T.Start();
          using (System.IO.StreamReader Reader = new System.IO.StreamReader("C://myfile2.txt"))
  
          {
              StringBuilder Sb = new StringBuilder();
              string fileContent = Reader.ReadToEnd();
              if (fileContent.Contains("and"))
              {
                  Console.WriteLine("It is Present");
              }
              else
              {
                  Console.WriteLine("It is not Present");
              }
  
              Console.ReadLine();
          }
      }
      static void Finding()
      {
          if (fileContent.Contains("hello"))
          {
              Console.WriteLine("It is Present");
          }
          else
          {
              Console.WriteLine("It is not Present");
          }
      }
  }
  </code></pre>