FYI - this breaks lines at `\n` -- there could be problems with newlines in Dos or old-OSX style?  Note also character counts may be implicated if we split on `\r\n` (newline eats two characters -- I believe that's the +1 on line 1071/1072)