Blacklist lines from a .txt file

Support
  • 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.txt

    in [[USER]] will be something that is not in blacklist.txt.

  • 0 Votes
    7 Posts
    758 Views
  • Read CSV Files

    Support
    0 Votes
    3 Posts
    684 Views
  • Can’t download file

    Support
    0 Votes
    1 Posts
    507 Views
  • 0 Votes
    1 Posts
    642 Views
  • How to load CSV file MultiLine

    Support
    0 Votes
    4 Posts
    2237 Views