{"url":"https://www.shigemk2.com/entry/sbt_fromfile","blog_url":"https://www.shigemk2.com/","published":"2015-09-10 01:02:50","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/shigemk2/","author_name":"shigemk2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2Fsbt_fromfile\" title=\"sbt\u3067scala.io.Source.fromFile\u3059\u308b - by shigemk2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Scala"],"height":"190","provider_url":"https://hatena.blog","blog_title":"by shigemk2","width":"100%","image_url":null,"version":"1.0","type":"rich","description":"object ReadFile { def main(args: Array[String]) = { val a = scala.io.Source.fromFile(\"test.txt\").getLines().toSet println(a) } } sbt\u3067src/main/scala\u306e\u4e0b\u306b\u3053\u3093\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u7a81\u3063\u8fbc\u3093\u3067\u3001\u5b9f\u884c\u3059\u308b\u3068\u3001\u3069\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u304b\u3068\u3044\u3046\u3068\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d9\u30fc\u30b9\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u5834\u6240\u306b\u306a\u308b\u3002\u307f\u305f\u3044\u3002","title":"sbt\u3067scala.io.Source.fromFile\u3059\u308b"}