StreamReader file = new StreamReader(@"\Folder\y.dat"); string line; while ((line = file.ReadLine()) != null) { if (line.Contains("ok")) { } else { MessageBox.Show("ok not found); goto z; } textBox1.Text = line; }
goto
StringBuilder
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)