×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

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

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

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

(OP)
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.

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

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?

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

(OP)
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.

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

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 https://tcl.tk/man/tcl8.6/TclCmd/fconfigure.htm#M1...

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close