Query a file for information using a config file to describe it.