Thanks, that worked, but the wildcarding doesn't seem to work, it only performs the action if $- matches the line in the txt file exactly. I tried adding * around it, $read(File.txt,nw, *$-*) but it doesn't seem to work.(also tried setting $- to a variable and doing $read(File.txt,nw, *%variable*) but that didn't work either)
edit: i realised that this won't work for me, since i need to check if the word entered contains any of the lines in the text file
edit2: I ended up using while loops and tracking the size of the list, thanks for the help
Last edited by Tehpolecat; 31/03/14 02:45 AM.