六级士官
UID9010258
U币2
G币1024
技术0
主题1
精华0
阅读权限70
注册时间2018-5-25
最后登录2024-6-3
在线时间68 小时
六级士官
|
global ptp_file_name
set tmp_file_name "${ptp_file_name}_"
if {[file exists $tmp_file_name]} {
MOM_remove_file $tmp_file_name
}
MOM_close_output_file $ptp_file_name
file rename $ptp_file_name $tmp_file_name
set ifile [open $tmp_file_name r]
set ofile [open $ptp_file_name w]
global mom_machine_time
set cutting_time "(CUTTING TIME: [ format "%.2f" $mom_machine_time])"
puts "%"
puts $cutting_time
set buf ""
while { [gets $ifile buf] > 0 } {
puts $ofile $buf
}
close $ifile
close $ofile
MOM_remove_file $tmp_file_name
MOM_open_output_file $ptp_file_name |
|