1 # vim: ft=tcl foldmethod=marker foldmarker=<<<,>>> ts=4 shiftwidth=4
3 proc tlc
::readfile {fn
{mode
"text"}} { #<<<
9 fconfigure $fp -encoding binary -translation binary
13 error "Invalid mode: \"$mode\"" "" [list invalid_mode
$mode]
24 proc tlc
::writefile {fn dat
{mode
"text"}} { #<<<
30 fconfigure $fp -encoding binary -translation binary
34 error "Invalid mode: \"$mode\"" "" [list invalid_mode
$mode]
38 puts -nonewline $fp $dat