set fin [open "input.dat" r]; fconfigure $fin -translation binary -encoding binary
set fout [open "output.dat" w]; fconfigure $fout -translation binary -encoding binary
while {! [eof $fin]} {
set buf [string range [read $fin 244] 58 97]
binary scan $buf H* aaa
puts $fout $aaa
}
close $fin; close $fout
|