How can i parse this csv file in Scala, to extract an object Data contain (date,time,longitude,latitude)
*M…….:Dy4.5
*N……….:14_540
*V…..:N
*S….:1.2.1
*yyyy/mm/dd;hh:mm:ss;long;lat
2016/05/09;12:50:19;-122.45006;38.47320
2016/05/09;13:04:10;-122.45011;38.47317
i already wrote this function but it just read the file, i don't know how to transform it into object
def readData(fileName:String): Vector[Array[String]] = {
for {
line <- Source.fromFile(fileName).getLines().toVector
values = line.split(";").map(_.trim)
} yield values
}