StreamReader

string _FileText; using (System.IO.StreamReader _StreamReader = new System.IO.StreamReader("PathFile")) { _FileText = _StreamReader.ReadToEnd(); } string _TextLine; using (System.IO.StreamReader _StreamReader = new System.IO.StreamReader("PathFile")) { while ((_TextLine = _StreamReader.ReadLine()) != null) { Console.WriteLine(_TextLine); } } MSDN Artikel

Von |2015-06-14T13:35:51+00:00Juni 14th, 2015|Kommentare deaktiviert für StreamReader