What loop are you talking about? Are you splitting the file on each line and then looping through all lines? Or did you add a loop task?
In both cases, you can stop the loop by provoking an intentional error.
Place your splitter or your toop task inside a Branch. Inside the loop, add a Condition task to determine if the loop should continue (using whatever logic is appropriate for your data).
The True branch of your condition is where the loop continues processing, while the False branch is where you'll provoke the error intentionally (for instance, by adding add a Run Script task that contains something like "Intentional Error", which is not a valid scripting command).
Right-click on the Run Script task and select Advanced properties to access the On Error tab. Make sure you set the Action parameter to "Stop branch".
That's it, your branch containing the loop will stop running as soon as the error is generated, and the rest of the process can keep running.
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen