Hey Guyz!
I would like a reference link to understand what I am doing wrong with that script :
set fidCmpt [open "file.cmpt" RDWR]
set cmpt [read -nonewline $fidCmpt]
incr $cmpt
puthelp "NOTICE $nick :Counter is at $cmpt"
close $fidCmpt
I also tried incr $(cmpt)
On incr $(cmpt) I got : Tcl error [join_justjoined]: can't read "(cmpt)": no such variable
On incr $cmpt I got : Tcl error [join_justjoined]: can't read "1000": no such variable
1000 is the value red in file.cmpt just above.
After some tests I tought I need to convert $cmpt in interger or something.. I did not found how to yet.. Can you refer me somewhere?
Thanx!!