title: Splitting a Comma-Separated String in Scala: Missing Trailing Empty Strings?
body: <p>I have a data file in csv format.
  I am trying to split each line using the basic split command <code>line.split(',')</code>
  But when I get a string like this <code>"2,,"</code>, 
  instead of returning an array as thus <code>Array(2,"","")</code>
  I just get an <code>Array: Array(2)</code>.
  I am most definitely missing something basic, could someone help point out the correct way to split a comma separated string here?</p>