StreamReader
Console
string Data = File.ReadAllText(@"Path");
string[] Multi = Data.Split('\n');
for(int i=0;i<multi.length;i++)> { Console.WriteLine(Multi[i].ToString()); }
static void Main(string[] args) { string path = "D://file.txt"; string[] lines = System.IO.File.ReadAllLines(path); int i = 0; while (i < lines.Length) { Console.WriteLine(lines[i]); i++; } Console.Read(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)