function parseIni(file) {
  let doc;
  try {
    doc = ini.parse(file);
    return doc;