Iterate through file data by result, not line