set filename "your file to convert"
set rfile [open $filename r]
fconfigure $rfile -translation crlf
set rdata [read $rfile]
close $rfile
set wfile [open $filename w]
fconfigure $wfile -translation crlf
puts $wfile "$rdata"
close $wfile
that should take care of it i think ..
|