We repeat the following code snippet to get the data from a csv line:
val rowSplit = line.split(",",-1)
rowSplit match {
case array:Array[String] =>{
if (array.length > 23){
val (office,messageid,screenchannel,screenname) =
(array(0),array(2),array(3), array(8))
...
But it just stinks. Is there a better way to do this?