using System; using System.IO; public class Example { public static void Main() { string fileName = @"C:\test.txt"; string _text = File.ReadAllText(fileName); string[] _lines = _text.Split('\n'); foreach (string _line in _lines) { Console.WriteLine(_line); } } }