Hi,
I have a file i am reading each line:
For eample:
4 foo b
3 bar c
2 foo_bar b
Ans so on...
Each line i split into 3 ( i j k ) and define an array named data:
lappend data($k) $i $j
At last i am going through all keys of the array and write every key value into a file
So if one key has few values i want to write each of them in different line in a file.
How can i do it?
Thanks.
I have a file i am reading each line:
For eample:
4 foo b
3 bar c
2 foo_bar b
Ans so on...
Each line i split into 3 ( i j k ) and define an array named data:
lappend data($k) $i $j
At last i am going through all keys of the array and write every key value into a file
So if one key has few values i want to write each of them in different line in a file.
How can i do it?
Thanks.