0
我需要通过一个字符串列表并计算重复的次数,然后用一行中出现次数的字符串打印到文件。这是我的,但我只需要打印一次字符串和它的数量。组重复计数
Do
line = LineInput(1)
Trim(line)
If line = temp Then
counter += 1
Else
counter = 1
End If
temp = line
swriter.WriteLine(line & " " & counter.ToString)
swriter.Flush()
Loop While Not EOF(1)
我的大脑只是今天没有发挥作用..