#for each line { # split line into bits; # has string been seen { # do something; # } #}