search for the exact string or skip the lane that contain a string : hi im new in c# and i have a probleme that when i search for a string "code:A1" its give also the lane tha countain "code:A14" i want to search for the exact word "code:A1" or just ban "code:A14" from the code here's what did i do and doesnt work






` try
            {
                using (System.IO.StreamReader file = new System.IO.StreamReader(@"C:\\Users\\" + comboBox3.Text + "\\Desktop\\TEST\\TEST\\fichiers\\" + comboBox1.Text + "\\winvsr.log"))
                {
                    string motcletest = "code:A1";
                    string motcle = "code:A16";
                    string motcledm ="code:A14";
                    string linee;`

        
                    linee = file.ReadLine();
                    do
                    {
                        if (linee.Contains(motcletest) || linee.Contains(motcle) )
                        {

                           
                            SetupV02_textbox.Text = linee;
                            

                        }
                        if (linee.Contains(motcledm))
                        {
                            continue;


                        }
                    }
                    while ((linee = file.ReadLine()) != null);
                    //string retval = SetupV02_textbox.Text.Split("\n\r".ToCharArray(), StringSplitOptions.RemoveEmptyEntries).First(p => p.Equals(motcle));
                    string setup = SetupV02_textbox.Text;
                    string testomada2 = setup.Split(new string[] { "code:" }, StringSplitOptions.None).Last();
                    label2.Text = testomada2.ToString();`