log
graph
tags
bookmarks
branches
changeset
browse
file
latest
diff
comparison
annotate
file log
raw
help
Mercurial
>
hg
>
Members
>
nobuyasu
>
scala
comparison chapter3/fileRead.scala @ 0:
b316eec6fa7a
draft
default
tip
Find changesets by keywords (author, files, the commit message), revision number or hash, or
revset expression
.
add sample files
author
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date
Tue, 08 Jan 2013 16:41:46 +0900
parents
children
comparison
equal
deleted
inserted
replaced
-1:000000000000
0:b316eec6fa7a
1
import scala.io.Source
2
3
if (args.length > 0) {
4
5
for (line <- Source.fromFile(args(0)).getLines)
6
println(line.length + " "+ line)
7
} else
8
Console.err.println("Please enter filename")
9
10
11
12
13
14
15
16
17