started by [Theo Verelst] manual page discussions are (temporarily ?) stored here, at least by me for the moment, maybe this can be a transient page, or at least one which gets emptied with the next release. '''Binary''' Lsrge number of options, I didn't go over all the option examples, even though they're important. Bottom example: EXAMPLES This is a procedure write a Tcl string to a binary-encoded channel as UTF-8 data preceded by a length word: proc writeString {channel string} { set data [encoding convertto utf-8 $string] puts -nonewline [binary format Ia* \ [string length $data] $data] } This procedure reads a string from a channel that was written by the previously presented writeString procedure: proc readString {channel} { if {![binary scan [read $channel 4] I length]} { error "missing length" } set data [read $channel $length] return [encoding convertfrom utf-8 $data] } Formatting issue. Interesting. mind that a non-blocking read of 4 can stall your whole program in case of error... '''dict''' oops a command I don't know about.