SyntaxFix
Write A Post
Hire A Developer
Questions
Try using String.Split Method:
string text = @"First line second line third line"; foreach (string line in text.Split('\n')) { // do something }