changeset 171 | 4c9497ab5caa |
parent 167 | 349d706586ef |
child 199 | 54befaf23648 |
--- a/testing1/drumb.scala Fri Feb 23 22:26:42 2018 +0000 +++ b/testing1/drumb.scala Thu Mar 08 12:32:50 2018 +0000 @@ -22,7 +22,7 @@ import scala.util._ def get_january_data(symbol: String, year: Int) : List[String] = - Source.fromFile(symbol ++ ".csv")("ISO-8859-1").getLines.toList.filter(_.startsWith(year.toString)) + Source.fromFile(symbol ++ ".csv").getLines.toList.filter(_.startsWith(year.toString)) def get_first_price(symbol: String, year: Int) : Option[Double] = {