标签:scala
import scala.io.Source if(args.length>0){ for(line <- Source.fromFile(args(0)).getLines) println(line.length+" "+line) } else Console.err.println("Please enter filename");
Scala读取文件内容
原文地址:http://blog.csdn.net/u011740475/article/details/41511769