view v save filename   =>   bytes
v   input view
filename   output filename

Save writes v and all its subviews to file filename. The return value is the number of bytes written.

Example:
set v [view A def {a b c}]

view $v save test.dat
42