changeset 284 | 9a04eb6a2291 |
parent 227 | b5f3e814a710 |
283:ef5f62bf5987 | 284:9a04eb6a2291 |
---|---|
1 |
1 |
2 import io.Source |
2 import io.Source |
3 import scala.util._ |
3 import scala.util._ |
4 |
|
5 import CW7b._ |
|
4 |
6 |
5 def urban_get_csv_file(name: String) : List[String] = { |
7 def urban_get_csv_file(name: String) : List[String] = { |
6 val csv = Source.fromFile(name) |
8 val csv = Source.fromFile(name) |
7 csv.mkString.split("\n").toList.drop(1) |
9 csv.mkString.split("\n").toList.drop(1) |
8 } |
10 } |