diff options
author | Nami-Doc <vendethiel@hotmail.fr> | 2013-12-30 04:28:09 -0800 |
---|---|---|
committer | Nami-Doc <vendethiel@hotmail.fr> | 2013-12-30 04:28:09 -0800 |
commit | e97b02c0d5149363f96cf80aa0dd3d89ec28298d (patch) | |
tree | 46a0849f68c8c99410de3bc2bcf4b3c9ef664d2b | |
parent | 37299ff4da52d10c104b788f66e3833231ae6192 (diff) | |
parent | c0a9eabb6c6780c6ab1a9501a6aa2bc49b2dd54c (diff) |
Merge pull request #468 from cengizIO/master
[scala/en] Source.fromPath no longer exists
-rw-r--r-- | scala.html.markdown | 2 |
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 |