Untitled
unknown
plain_text
2 years ago
338 B
13
Indexable
object Main {
def main(args: Array[String]): Unit = {
val path = "C:\\Users\\User\\Documents\\Cours Data Engineering\\Java & Scala\\TP\\movies.csv"
val buf = io.Source.fromFile(path)
for(line <- buf.getLines()){
val cols = line.split(",")
cols.foreach(col => println(col))
}
buf.close()
}
}
Editor is loading...