( ), . , . (, , "".::))
var pattern = new Regex(@"\b\w+\b");
using (var reader = new StreamReader(@"..\..\TextFile1.txt"))
{
while (reader.Peek() >= 0)
{
Match match = pattern.Match(reader.ReadLine());
while (match.Success)
{
Console.WriteLine(match.Value);
match = match.NextMatch();
}
}
}
-, , . . , , ReadLine() , . .