Open DPath + "a1.txt" For Output As #1 Print #1, replace(replace(Total,chr(13),""),chr(10),"") Close #1 上面那个太麻烦了,如果存在多个还会出错,我这个不会 嘿嘿jc:if right(total,1)=chr(10) or right(total,1)=chr(13) thentotal=mid(1,len(toral)-1)goto jcend if只处理最后有回车或者换行的...
tempstr=totalfor i=1 to len(tempstr) if mid(tempstr,i,1)chr(10) or mid(tempstr,i,1)chr(10) then
total=total & mid(tempstr,i,1) end ifnextOpen DPath + "a1.txt" ...