File reading utilities

line-by-line file reading in place