change line number implementation for reading not on cnblogs