private int ReadChar() { int result = textReader.Read(); if(result == '\n') { lineNumber++; column = 1; } else { column++; } return result; }