using(StreamReader stream = new StreamReader("filename")) { string line = null; while( (line = stream.ReadLine()) != null) { } }
string fileText = System.IO.File.ReadAllText("filename")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)