compare to file