The wierd thing is that $readn is 0 which means test is never found in the file!
Turbo_boy are you sure that's all there is to it?
My guess is there's something wrong with your file.
Most likely the path txt\renegade.txt is not correct.
Try using a full path like this:
$read($+(",$mirdirtxt\renegade.txt,"),s,test)
Another chance is that test is not in the beggining of any line and there's somthing wrong inside the text file.