Created
February 17, 2013 08:09
-
-
Save ozw-sei/4970634 to your computer and use it in GitHub Desktop.
Scala勉強中@コップ本 適当 ref: http://qiita.com/items/a268b00f7222eb7424e5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.io.Source | |
if(args.length >0){ | |
for(line<- Source.fromFile(args(0)).getLine()) | |
println(line) | |
} | |
} | |
else | |
Console.err.println("please enter fileName") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment