System.IO.File.ReadAllText(@"PATH");
string[] lines = File.ReadAllLines(@"D:\Temp\MyList.txt"); string match = "0321\t"; string wholeLine = ""; foreach (string line in lines) { if (line.StartsWith(match)) { wholeLine = line; break; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)