v input view channel output channel
Write writes v and all its subviews to channel. The return value is the number of bytes written.
Note: channel is set to binary mode, i.e. "-translation binary".
Example:set v [view A def {a b c}]
set fd [open test.dat w]
set result [view $v write $fd]
close $fd
set result
42