Adding new "columns" to csv data file in Tcl
Posted
by George
on Stack Overflow
See other posts from Stack Overflow
or by George
Published on 2010-05-05T12:12:05Z
Indexed on
2010/05/05
12:18 UTC
Read the original article
Hit count: 271
Hi All,
I am dealing with a "large" measurement data, approximately 30K key-value pairs. The measurements have number of iterations. After each iteration a datafile (non-csv) with 30K kay-value pairs is created. I want to somehow creata a csv file of form:
Key1,value of iteration1,value of iteration2,...
Key2,value of iteration1,value of iteration2,...
Key2,value of iteration1,value of iteration2,...
...
Now, I was wondering about efficient way of adding each iteration mesurement data as a columns to csv file in Tcl. So, far it seems that in either case I will need to load whole csv file into some variable(array/list) and work on each element by adding new measurement data. This seems somewhat inefficient. Is there another way, perhaps?
© Stack Overflow or respective owner