title: Extract substrings from a text file on each line?
body: <p>Is there a way to extract substrings from a textfile from each like e.g.
  Say this is the text file but with alot more lines like this:</p>
  <p><code>president, Donald Trump, 74, USA</code></p>
  <p><code>Priminster, Boris Johnson, 56, UK</code></p>
  <p>I would need to loop through each line and get substrings which are split by commas.
  So the that the substring would be <code>Donald Trump, 74</code> and so on for the other lines.</p>