回复 54# nbmpe
何必用字典,就是你的方法稍微优化一下即可。
#include <File.au3>
Local $Str = _
'AAA BBB ' & @CRLF & _
'CCC AAA' & @CRLF & _
'AB AB AC' & @CRLF & _
'ABCDE AAA' & @CRLF
Local $StrAll = ''
For $i = 1 To 1000
$StrAll &= $Str
Next
FileWrite('1000组重复.txt', $StrAll)
$begin = TimerInit()
$aFile = "1000组重复.txt"
Local $str='',$file_array
_FileReadToArray($aFile,$file_array)
For $i = 1 To UBound($file_array)-1
$temp=$file_array[$i]
If Not IsDeclared($temp) Then
Assign($temp, $i)
$str&=$temp&@CRLF
EndIf
Next
$dif = TimerDiff($begin)
MsgBox(0, $dif,$str)
|