raider2k wrote:would you be so kind to help me out with a small explanation/introduction please?
Until arfer replies, here are a few things you might like to read. They'll help to get you started.
Go here:
http://suninet.the-demon.de/
That whole site is very helpful.
But if you wish, you can scroll down to the section titled Variables, and find a sub-section there, - Using Arrays. .. and more.
You'll see, when you get there.
Go here:
http://www.tcl.tk/man/tcl8.5/TclCmd/array.htm
for the tcl array specific commands.
I wouldn't start here. Just have it bookmarked, because you will need it eventually.
You can do a lot with the info stored in arrays, with these commands.
For the part about reading from a file, the basics are here:
http://forum.egghelp.org/viewtopic.php?t=6885
Bear in mind, that the examples there are for reading from a file, into a list. But it is still good reading, and gives you the idea of how it is done.
(If you need to look up some of the commands used, to understand them - go back to:
http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm
as that is the main page there )
I hope this little bit of background info, after you read it, gets you primed, so that you can take right off, with whatever comments arfer returns with.