37

Scala 的文件访问-骑猪去旅行

 6 years ago
source link: http://blog.51cto.com/songqinglong/2073525
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
==> 读取行// 读取行val source = scala.oi.Source.fromFile("d:\\test\\a.txt")// 将整个文件作为一个字符串// 将文件中的每一行读入==> 读取字符val source = scala.o

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK