newbie question but I often found myself working with files, parsing each line and convert it into case class so that I can use if further in more object like manner. In java and now in scala I do same procedure.
case class ABC(v1: Int, v2: String)
val str = line.split("\t")
val v1 = str(0).toInt
val v2 = str(1)
ABC(v1, v2)
Is there any shorter way I can create case class from array than this? This gets very tedious as I always have tons of fields to process.