KuTsuM commented on a Page, Fulgore Black List  -  May 18, 2006

Your while loop is set up in a bad. You should perform checks to make sure your reading actual lines of the text file

This is yours:

while ($read(blacklist.txt,%blacklist) != $null) {
did -a blacklist 6 $read(blacklist.txt,%blacklist)
inc %blacklist
}

A better one should be:

while (%blacklist <= $lines(blacklist.txt) {
did -a blacklist 6 $read(blacklist.txt,%blacklist)
inc %blacklist
}

The $lines identifier returns the number of lines in a text file. Although both formats will still grab everything from a txt file, this is a cleaner way of doing it

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.