I want my BAS bot to read data from a Notepad (resource file) and process each line using multiple threads (for example 10 threads).
When a line is successfully processed or fails, I want the bot to delete only that exact line from the file — not any other data.
The problem right now is that if some threads stop or crash in the middle (for example 2–4 threads fail because of proxy or data errors), and the remaining threads finish successfully, BAS sometimes deletes the wrong lines when using “Delete Current Element.” It can even delete the top lines or other unrelated data.
I want a safe system where:
Even if 10 or 20 threads are running at once,
And some threads fail or stop unexpectedly,
The bot only deletes the exact matching line (based on the text content),
It doesn’t delete other lines or shift the data,
And unprocessed lines stay untouched even after errors or crashes.
In short:
The bot should always delete data by matching the exact text, not by position or index, so no wrong lines are removed — no matter how many threads are running.
it will be very helpful if anyone make a just simple 4-5 step xml file for my really huge thank you ;) <3