@ptt-bds Bác có 10 luồng thì đầu tiên nếu không có gì xảy ra nó sẽ lấy 10 dòng đầu tiên, sau đó thì cứ luồng nào "ra đi" nó sẽ lấy dòng tiếp theo, đâu có theo quy luật như 1,11,21,31 vs luồng 1 như bác nói đâu.
Blacklist lines from a .txt file
-
My script use 1 line from a txt file called user.txt every few minutes. I'm looking to save the used line to blacklist.txt file and when script go to the next line, it should check in the blacklist.txt if the line exist. If exist then it should ignore it and move to the next line.
Thanks for any help
-
@andreiem run the code
while ( true ) { [[USER]] = {{user|notreuse}}; if( RMap( "blacklist" ).indexOf( [[USER]] ) != -1 ) break; }{{user}} - file resource user.txt
"blacklist" - file resource name blacklist.txtin [[USER]] will be something that is not in blacklist.txt.