qwerty, I used your first method, and I didn't realize this until now, but it only lets me keep about 7 lines on the file, otherwise it won't read the rest and count it as a word to search in the $1-. Any ideas?