I'm working on a program that read a file, and from this file, I need to get the numbers in a specific order.
All the numbers are on the same line, and separated by a tabulation. Like in this example :
d s a m
2 1 0 1
3 2 1 1
In C++, that should look like that :
unsigned d, s, a;
infile >> d >> s >> a;
But I'm new in Scala, so I have no idea how to do.
I'm using scala.io.Source.