Advertisement
untoha

find_difference.au3

Jan 20th, 2018
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.53 KB | None | 0 0
  1. ; get difference of two files in another one file
  2.  
  3. #include <Array.au3>
  4. #include <File.au3>
  5. #include <MsgBoxConstants.au3>
  6.  
  7. Local $ENRetArray, $RURetArray
  8. _FileReadToArray("en", $ENRetArray)
  9. _FileReadToArray("ru", $RURetArray)
  10. Local $ResFileOpen = FileOpen("res", $FO_APPEND)
  11.  
  12. For $i = 1 To UBound($ENRetArray) - 1
  13.    if _ArraySearch($RURetArray, $ENRetArray[$i], 0, 0, 0, 0, 1, 2) = -1 Then
  14.       ConsoleWrite($ENRetArray[$i] & @LF)
  15.       FileWrite($ResFileOpen, $ENRetArray[$i] & @LF)
  16.    EndIf
  17. Next
  18.  
  19. FileClose($ResFileOpen)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement