Well, i decided to use the looping and file picking up code i learnt, thanks to you guys whilst making my rules script, and use it to replace the hard coded variables in my url storage and favourites scripts. But...
[00:04:46] <Natsuki-Chan> [00:04] Tcl error [pub:stars]: can not find channel named "text/stars.file"
"text/stars.file" is equal to stars(path) in the script, so what is wrong? Is it just my typoing syntax again?
Before you can use file functions like eof, gets, close, etc, you have to open the file. Use the 'open' command. It gives you a handle to the open file. Then you use that handle for the file functions.
However, it then remains that you are passing the wrong arguments to other functions.
Look at the "eof" command you have used.
You are passing it the file name, not the channel name (Tcl calls then channel names. This is due to the fact, it's a channel through which a Tcl script can talk to a file).