Код: Выделить всё
sr.ReadLine()). Мой код считает конец строки с обоими окончаниями \r\nКод: Выделить всё
StreamReader sr = new System.IO.StreamReader(sPath, enc);
while (!sr.EndOfStream)
{
// reading 1 line of datafile
string sLine = sr.ReadLine();
...
Подробнее здесь: https://stackoverflow.com/questions/258 ... -read-line