| View previous topic :: View next topic |
| Author |
Message |
chepeme Voice
Joined: 11 Jul 2014 Posts: 3
|
Posted: Fri Jul 11, 2014 7:39 am Post subject: Problem writing a file. |
|
|
On the example from http://forum.egghelp.org/viewtopic.php?t=6885 i took the remove line code.. once I tried it i got this error
Tcl error [dquote]: wrong # args: should be "join n host h chan"
The line causing the error is
| Code: | | puts $fp [join $lines "\n"] |
Any idea why?
Regards |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Fri Jul 11, 2014 10:07 am Post subject: |
|
|
Cos you got a proc called join and this like instead of using the TCL join command will call yours, hence the error.
You should avoid using the TCL language functions as proc names, in your case having a proc called join. Rename it to something like mystuff:join or whatever. _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
chepeme Voice
Joined: 11 Jul 2014 Posts: 3
|
Posted: Fri Jul 11, 2014 3:54 pm Post subject: |
|
|
| That was the problem, thanks again! |
|
| Back to top |
|
 |
|