本帖最后由 lxsky 于 2013-5-2 10:35 编辑
回复 6# afan
帅,我已经搞定了 用了2次StringSplit,不知道 哪个效率高点#include <Array.au3>
Local $Data = _
'1|aaa.txt|werrt' & @CRLF & _
'2|bbb.exe|12234' & @CRLF & _
'3|wer/ad.cmd|1sdf' & @CRLF & _
'4|wer/ads.bat|1234'
Local $Split = StringSplit($Data,@CR,0)
If IsArray($Split) Then
Local $Count
$Count = $Split[0]
Local $Array[$Count + 1][3]
For $i = 1 To $Count
$Temp = StringSplit($Split[$i], "|")
;MsgBox(0,0,$Temp[1]&'//'&$Temp[2])
$Array[$i][0] = $Temp[1]
$Array[$i][1] = $Temp[2]
$Array[$i][2] = $Temp[3]
Next
EndIf
_ArrayDisplay($Array, UBound($Array))
|