Vb how to determine whether two TXT have duplicate content
Time:11-12
FAI has repeated clear text content
CodePudding user response:
Please everyone a great god guide!
CodePudding user response:
Logic statements: if then else endif, do.. Loop, the for... Next The split string handling functions, left, right, mid, len Read and write files: the open statement Basic on these can solve above, not using the F1 + baidu, if he too lazy to write directly bids,
CodePudding user response:
Dim str_array () As a String, _ Str_info As String, _ Bound_array As Long, _ I As Long, _ J As Long
Bound_array=UBound (str_array) For I=0 To bound_array - 1 For j=I + 1 To bound_array If str_array (I)=str_array (j) Then Str_array (j)=str_array (bound_array) Bound_array=bound_array - 1 ReDim Preserve str_array (bound_array) J=j - 1 End the If If j=bound_array Then The Exit For End the If Next j If I=bound_array Then The Exit For End the If Next I
For I=0 To bound_array The Debug. Print str_array (I) Next I
CodePudding user response:
A great god, and I wanted to first TXT and second TXT checked, if there are repeated, remove the second TXT everything??