Data update
This commit is contained in:
parent
0df55f9f24
commit
aec8ed51b6
1045 changed files with 18889 additions and 2777 deletions
|
|
@ -0,0 +1,17 @@
|
|||
fun readLines string =
|
||||
let
|
||||
val strm = TextIO.openIn path
|
||||
fun chomp str =
|
||||
let
|
||||
val xstr = String.explode str
|
||||
val slen = List.length xstr
|
||||
in
|
||||
String.implode(List.take(xstr, (slen-1)))
|
||||
end
|
||||
fun collectLines ls s =
|
||||
case TextIO.inputLine s of
|
||||
SOME(l) => collectLines (chomp l::ls) s
|
||||
| NONE => ls
|
||||
in
|
||||
List.rev (collectLines [] strm) before TextIO.closeIn strm
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue