Move helper method for reading lines to TUtils.