来个VBS- Dim fso,File1,File2
- Set fso = CreateObject("Scripting.FileSystemObject")
- Set File1= fso.OpenTextFile(".\测试.txt", 1 , True)
- Set File2 = fso.CreateTextFile(".\结果.txt", 2 ,True)
- Do While File1.AtEndOfStream <> True
- strtmp = Trim(File1.ReadLine)
- If Len(strtmp) > 0 Then str=str&strtmp&"|"
- loop
- File2.Write Left(str,Len(str)-1)
- File1.Close
- File2.Close
- MsgBox "完成!"
复制代码
|