Try this version
Code:
while $numtok($read(songrequest.txt,1),58) {
  if !$findfile($+("C:\program files\mirc3\files\",$gettok($read(songrequest.txt,1),1,58))) {
    .write -c songrequest.txt $deltok($read(songrequest.txt,1),1,58)
  }
  if !$numtok($read(songrequest.txt,1),58)  { remove songrequest.txt }
}


Personally I don't like using text files for something like this, as the reading/writing is what's going to take the longest time, due to the relatively slow speed of your hard drive.

Last edited by RusselB; 06/08/07 11:38 PM.