Added new function to read file contents.
Use higher level function to read config file.