zerobarrier
Programmer
Hello,
I have been trying to do this for a while. I am trying to send text from a file on the server computer, to the client program, and have the text display in a text widget.
This is part of my server application code:
set parser [interp create -safe]
$parser eval {
proc get_news {} {
set fid [open archive/test.eif "r"]
set a [read $fid]
close $fid
return "show_news $a"
}
}
I want it to send the contents of "test.eif" to the client. I can connect to the server alright with the client, but it doesnt receive the text. Please help me. Thanks [sig][/sig]
I have been trying to do this for a while. I am trying to send text from a file on the server computer, to the client program, and have the text display in a text widget.
This is part of my server application code:
set parser [interp create -safe]
$parser eval {
proc get_news {} {
set fid [open archive/test.eif "r"]
set a [read $fid]
close $fid
return "show_news $a"
}
}
I want it to send the contents of "test.eif" to the client. I can connect to the server alright with the client, but it doesnt receive the text. Please help me. Thanks [sig][/sig]