here's the prob. I'm working on a script which contains alot of info..so I put it in txt files. U can do !search <word> and the script gives a reply to that. Now what I can't figure out is... How do I code it so that if I search for "swed", it searches for any word in the txt file starting with
"swed"?..ex "sweden"
I've used:
while {![eof $fs]} {
gets $fs line
if {$line == $arg} { set found 1 }
}
if {$found} {
to search for the entire words...and it works just as I want it to.
Forgot to post that I actually found out how to do it on my own, but thx anyway =)
Now a new question... I'm on a new but similar script. If u do !add xx:xx:xx How can u split up the xx:xx:xx and make the script recoginse if it is one or two ":" in the arg?
say if u have !add 11:11 it sees that the arg has one ":" and puts that in a file...or it sees that it is two ":" in !add 11:11:11
and put that in a different file...