标签:
import scala.io.Source object Test5 extends App { //读文件 var source =Source.fromFile("c://a.txt","UTF-8"); for(i <- source.getLines.toArray)println(i) source.close }
文件操作
原文地址:http://www.cnblogs.com/thinkpad/p/4694457.html