title: How to get part of filename into a variable?
body: <p>I have a lot of <code>.csv</code> files and I'd like to parse the file names.</p>
  
  <p>The file names are in this format:</p>
  
  <pre><code>name.surname.csv
  </code></pre>
  
  <p>How can I write a function that populates two variables with the components of the file name?</p>
  
  <pre><code>A = name
  B = surname
  </code></pre>