ループ内で次の行に移動するか、次の行を一時的に読み取ることは可能ですか? これを行う方法に関する有用なデータを見つけるのはあまり運がありませんでした。私の推測では、現在の行の行番号 (インデックス) を見つけて、現在の場所から +1 を読み取ります。
Using TestFile As New IO.StreamReader(My.Settings.cfgPath & "tempRPT.txt", System.Text.Encoding.Default, False, 4096)
Do Until TestFile.EndOfStream
ScriptLine = TestFile.ReadLine
ScriptLine = LCase(ScriptLine)
If InStr(ScriptLine, "update: [b") Then
Dim m As Match = Regex.Match(ScriptLine, "\(([^)]*)\)")
builder.AppendLine(m.Value)
'This is where it would move to next line temporarily to read from it
If InStr(ScriptLine, "hive: write:") > 0 Or InStr(ScriptLine, "update: [b") > 0 Then 'And InStr(ScriptLine, "setmarkerposlocal.sqf") < 1 Then
builder.AppendLine(ScriptLine)
End If
End If
Loop
End Using