summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNami-Doc <vendethiel@hotmail.fr>2013-12-30 04:28:09 -0800
committerNami-Doc <vendethiel@hotmail.fr>2013-12-30 04:28:09 -0800
commite97b02c0d5149363f96cf80aa0dd3d89ec28298d (patch)
tree46a0849f68c8c99410de3bc2bcf4b3c9ef664d2b
parent37299ff4da52d10c104b788f66e3833231ae6192 (diff)
parentc0a9eabb6c6780c6ab1a9501a6aa2bc49b2dd54c (diff)
Merge pull request #468 from cengizIO/master
[scala/en] Source.fromPath no longer exists
-rw-r--r--scala.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/scala.html.markdown b/scala.html.markdown
index 03c1ea76..5dfaefe0 100644
--- a/scala.html.markdown
+++ b/scala.html.markdown
@@ -396,7 +396,7 @@ object Application {
// To read a file line by line
import scala.io.Source
-for(line <- Source.fromPath("myfile.txt").getLines())
+for(line <- Source.fromFile("myfile.txt").getLines())
println(line)
// To write a file use Java's PrintWriter