Hallo Alina,
probier das mal:
Spoiler anzeigen
[autoit]
$file = FileOpen("neu.txt", 0)
$neu1 = FileOpen("neu1.txt", 1)
$neu2 = FileOpen("neu2.txt", 1)
$erstefuenf = 0
; Check if file opened for reading OK
If $file = -1 Then
MsgBox(0, "Error", "Unable to open file.")
Exit
EndIf
; Read in lines of text until the EOF is reached
While 1
$line = FileReadLine($file)
If @error = -1 Then ExitLoop
$text = StringLeft($line,8)
If $text = "no_26190" Then
If $erstefuenf = 0 Then
FileWriteLine($neu1,$line&@CRLF)
Else
FileWriteLine($neu2,$line&@CRLF)
EndIf
Else
$erstefuenf = 1
FileWriteLine($neu2,$line&@CRLF)
EndIf
Wend
FileClose($file)
FileClose($neu1)
FileClose($neu2)
läßt sich bestimmt noch ausbauen...