Skip to content

Instantly share code, notes, and snippets.

@ozw-sei
Created February 17, 2013 08:09
Show Gist options
  • Save ozw-sei/4970634 to your computer and use it in GitHub Desktop.
Save ozw-sei/4970634 to your computer and use it in GitHub Desktop.
Scala勉強中@コップ本 適当 ref: http://qiita.com/items/a268b00f7222eb7424e5
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