resource.compare works. reads in an input file and gets value of first line, then runs through the comparer