daisy4u721
Programmer
ok..... i have a file containing a list of product names..... and im trying to write a tcl code to has to seperate the list in different categories and open it in a new file.
for example i have a file containing this:
1156xx
2278xx
3342xx
2269xx
1125xx
3345xx
and im trying to write a code to put the list in this way in a new file.
The ones The twos The threes
1156xx 2278xx 3342xx
1125xx 2269xx 3345xx
some thing like this, im totally new to tcl..... any ideas or help please.
I think i would have to use a for loop but im not sure.
for example i have a file containing this:
1156xx
2278xx
3342xx
2269xx
1125xx
3345xx
and im trying to write a code to put the list in this way in a new file.
The ones The twos The threes
1156xx 2278xx 3342xx
1125xx 2269xx 3345xx
some thing like this, im totally new to tcl..... any ideas or help please.
I think i would have to use a for loop but im not sure.