$list = FileOpen("D:\a.txt",02)
If $list = -1 Then
MsgBox(0, "错误", "不能打开文件.")
Exit
EndIf
$linehao = 0
While 1
$linehao = $linehao + 1
$line = FileReadLine($list)
If @error = -1 Then ExitLoop
$linet=StringSplit($line,",")
if $jihao = $linet[1] and $cardid = $linet[2] Then
$linetiem = StringSplit($linet[5],":")
if $linetiem[1] = 0 then
MsgBox(0, "错误", "不能偷取该好友果实!")
Else
$linem = $linet[4] - $m
$linetiemt =$linetiem[1] - $time
_FileWriteToLine("D:\a.txt", $linehao, $linet[1]&","&$linet[2]&","&$linet[3]&","&$linem&","&$linetiemt&":"&$linetiem[2], 1)
EndIf
Else
MsgBox(0,"错误","qq好友对比失败。")
EndIf
Wend
这是我这段代码 运行后是a.txt里面的全不在了 ··· |