$file = FileOpen("file.txt", 0)
$read = FileRead($file)
If @error = -1 Then
MsgBox(0, "Error", "File not read")
Exit
Else
;;;MsgBox(0, "Read", $read)
If StringRegExp($read, "______Part Status______") Then
MsgBox(0, "Oops", "Match")
Else
MsgBox(0, "Oops", "No match")
EndIf
EndIf
FileClose($file)
I found this code and works great finding a string. What I would like to do is have it look at the next line after a string and assign it to a variable then go from there. End goal is to check if there is any text on the next line after string or if its empty.