Advertisement
Guest User

Delete 2 dobles

a guest
Oct 13th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 2.70 KB | None | 0 0
  1. #include <FileConstants.au3>
  2. #include <AutoItConstants.au3>
  3. #include <Array.au3>
  4. #include <File.au3>
  5.  
  6. local $aFile
  7. _FileReadToArray(@ScriptDir &"\Zahlen kuerzer.txt", $aFile)
  8. $sFileName2 = @ScriptDir &"\Zahlen noch kuerzer.txt"
  9. $hFilehandle2 = FileOpen($sFileName2, $FO_OVERWRITE)
  10. Local $sOriginal
  11. Local $i
  12. $str = 0
  13. While ($str <> 11715600)
  14. $str += 1
  15. $sOriginal = $aFile[$str]
  16. While 1
  17. $si = 0
  18.     $sOne = StringMid($sOriginal, $i+1, 1)
  19.     $sTwo = StringMid($sOriginal, $i+2, 1)
  20.     $sThree = StringMid($sOriginal, $i+3, 1)
  21.     $sFour = StringMid($sOriginal, $i+4, 1)
  22.     $sFive = StringMid($sOriginal, $i+5, 1)
  23.     If $sTwo = $sFive Then
  24.        If $sThree = $sFour Then
  25.         ExitLoop
  26.        EndIf
  27.     Else
  28.         ;Nothing
  29.     EndIf
  30.     If $sTwo = $sFour Then
  31.        If $sThree = $sFive Then
  32.         ExitLoop
  33.        EndIf
  34.     Else
  35.         ;Nothing
  36.     EndIf
  37.     If ?$sTwo = $sThree Then
  38.        If $sFour = $sFive Then
  39.         ExitLoop
  40.        EndIf
  41.     Else
  42.         ;Nothing
  43.      EndIf
  44.  
  45.  
  46.     If $sOne = $sFive Then
  47.        If $sThree = $sFour Then
  48.         ExitLoop
  49.        EndIf
  50.     Else
  51.         ;Nothing
  52.     EndIf
  53.     If $sOne = $sFour Then
  54.        If $sThree = $sFive Then
  55.         ExitLoop
  56.        EndIf
  57.     Else
  58.         ;Nothing
  59.     EndIf
  60.     If $sOne = $sThree Then
  61.        If $sFour = $sFive Then
  62.         ExitLoop
  63.        EndIf
  64.     Else
  65.         ;Nothing
  66.      EndIf
  67.  
  68.  
  69.     If $sOne = $sFive Then
  70.        If $sTwo = $sFour Then
  71.         ExitLoop
  72.        EndIf
  73.     Else
  74.         ;Nothing
  75.     EndIf
  76.     If $sOne = $sFour Then
  77.        If $sTwo = $sFive Then
  78.         ExitLoop
  79.        EndIf
  80.     Else
  81.         ;Nothing
  82.     EndIf
  83.     If $sOne = $sTwo Then
  84.        If $sFour = $sFive Then
  85.         ExitLoop
  86.        EndIf
  87.     Else
  88.         ;Nothing
  89.      EndIf
  90.  
  91.  
  92.     If $sOne = $sFive Then
  93.        If $sTwo = $sThree Then
  94.         ExitLoop
  95.        EndIf
  96.     Else
  97.         ;Nothing
  98.     EndIf
  99.     If $sOne = $sThree Then
  100.        If $sTwo = $sFive Then
  101.         ExitLoop
  102.        EndIf
  103.     Else
  104.         ;Nothing
  105.     EndIf
  106.     If $sOne = $sTwo Then
  107.        If $sThree = $sFive Then
  108.         ExitLoop
  109.        EndIf
  110.     Else
  111.         ;Nothing
  112.      EndIf
  113.  
  114.  
  115.     If $sOne = $sFour Then
  116.        If $sTwo = $sThree Then
  117.             ExitLoop
  118.        EndIf
  119.     Else
  120.         ;Nothing
  121.      EndIf
  122.      If $sOne = $sThree Then
  123.        If $sTwo = $sFour Then
  124.             ExitLoop
  125.        EndIf
  126.     Else
  127.         ;Nothing
  128.     EndIf
  129.      If $sOne = $sTwo Then
  130.        If $sThree = $sFour Then
  131.             ExitLoop
  132.        EndIf
  133.     Else
  134.         FileWrite($hFilehandle2, $sOriginal & @CRLF)
  135.         ExitLoop
  136.      EndIf
  137.     FileWrite($hFilehandle2, $sOriginal & @CRLF)
  138.     ExitLoop
  139. WEnd
  140. WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement