Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to print more than 4k character in TCL TK Client

Status
Not open for further replies.

Rohit Kumar

Systems Engineer
Jan 24, 2021
2
IN
Hi All,

I am not able to print more than 4k characters in my TCL TK Client using puts command.

Can anyone suggest me the possibile reason behind it or any solution to overcome this problem.

Thanks in advance for your help.
 
There is probably a buffer limit on the puts statement. Do you really need to dump the entire buffer in one go? Could you dump it in several statements in smaller buffers?
 
Many thanks for your suggestion.
Yes I need to dump the entire buffer in one go.
Could you please let me know that how can we check the assigned buffer size in my case.
 
It will be something like this
Code:
set f [open "afile.bin" "wb"]
fconfigure $f -buffersize newsize
puts $f ...
For more info have a look at
Even with this the limit is 1 million - whether that is 1048576B or 1000000B, I don't know. I've never needed to change the buffer size. Sometimes documents say 1 million when they mean 1 Mega.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top