title: How could I split a String into an array in Kotlin?
body: <p>I need to split a String read in from a file into an array of values. I want to split the String at the commas, so for example, if the String read:</p>
  
  <pre><code>"name, 2012, 2017"
  </code></pre>
  
  <p>The values in the array would be:</p>
  
  <ul>
  <li>array index 0 - name</li>
  <li>array index 1 - 2012</li>
  <li>array index 2 - 2017</li>
  </ul>
  
  <p>I found this example in Java:</p>
  
  <pre><code>String[] stringArray = string.split(",");
  </code></pre>
  
  <p>How I could do it in Kotlin?</p>