added new method to execute an arbitrary lambda for each row in a file