updated iup.nim; made tests green
This commit is contained in:
parent
d7d059a686
commit
41c7cde61f
9 changed files with 1055 additions and 1058 deletions
|
|
@ -8,14 +8,14 @@ import os, streams, parsecsv, strutils, math
|
|||
if paramCount() < 1:
|
||||
quit("Usage: statcsv filename[.csv]")
|
||||
|
||||
var filename = addFileExt(ParamStr(1), "csv")
|
||||
var filename = addFileExt(paramStr(1), "csv")
|
||||
var s = newFileStream(filename, fmRead)
|
||||
if s == nil: quit("cannot open the file " & filename)
|
||||
|
||||
var
|
||||
x: TCsvParser
|
||||
x: CsvParser
|
||||
header: seq[string]
|
||||
res: seq[TRunningStat]
|
||||
res: seq[RunningStat]
|
||||
open(x, s, filename, separator=';', skipInitialSpace = true)
|
||||
while readRow(x):
|
||||
if processedRows(x) == 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue