Simplify creating set from lines of file.
Order-preserving alternative implementation of difference.