Sub test()
Dim aIni$(), i&, ii&, aTmp$()
Open App.Path & "\Set.ini" For Input As #1
aIni() = Split(StrConv(InputB(LOF(1), 1), vbUnicode), vbLf)
Close #1
Do While i < UBound(aIni)
If Left(aIni(i), 4) <> "德固赛3" Then
ReDim Preserve aTmp(ii)
aTmp(ii) = aIni(i)
ii = ii + 1
End If
i = i + 1
Loop
i = 0
Open App.Path & "\Set.ini" For Output As #1
Do While i < UBound(aTmp) + 1
Print #1, aTmp(i)
i = i + 1
Loop
Close #1
End Sub
Sub test()
Dim aIni$(), i&, ii&, aTmp$()
Open App.Path & "\Set.ini" For Input As #1
aIni() = Split(StrConv(InputB(LOF(1), 1), vbUnicode), vbLf)
Close #1
Do While i < UBound(aIni)
If Left(aIni(i), 4) <> "德固赛3" Then
ReDim Preserve aTmp(ii)
aTmp(ii) = aIni(i)
ii = ii + 1
End If
i = i + 1
Loop
i = 0
Open App.Path & "\Set.ini" For Output As #1
Do While i < UBound(aTmp) + 1
Print #1, aTmp(i)
i = i + 1
Loop
Close #1
End Sub