Extract file read and compare into a module.