Simplify reading lines from configuration files.