Dim FS As New FileSystemObject, TS As TextStream
Dim TxtRows As Integer, Txt_Content As String
Dim jsq As Integer
Dim Str_Content As String
TxtRows = 5
Set TS = FS .OpenTextFile(App.Path + "\*.txt", 1)
For jsq = 1 To TxtRows
Txt_Content = Trim(TS.ReadLine)
If InStr(1, UCase(Txt_Content), "要判断的字符=") <> 0 Then
Str_Content= Mid(Txt_Content , InStr(1, UCase(Txt_Content), "要判断的字符=") + 13, Len(Txt_Content))
End If
Next jsq
dim s1 as string,s2 as string
open "c:\input.txt" for input as #1
open "c:\output.csv" for output as #2
do while not eof(1)
line input #1,s1
s2=replace(s1," ",",")
print #2,s2
loop
close #1
close #2
msgbox "完工!"