code: def load_profiles_from_file(self, fqfn):
          
          if self.args.verbose:
              print('Loading profiles from File: {}{}{}'.format(c.Style.BRIGHT, c.Fore.MAGENTA, fqfn))
          with open(fqfn, 'r+') as fh:
              data = json.load(fh)
              for profile in data:
                  # force update old profiles
                  self.profile_update(profile)
                  if self.args.action == 'validate':
                      self.validate(profile)
              fh.seek(0)
              fh.write(json.dumps(data, indent=2, sort_keys=True))
              fh.truncate()
  
          for d in data:
              if d.get('profile_name') in self.profiles:
                  self.handle_error(
                      'Found a duplicate profile name ({}).'.format(d.get('profile_name'))
                  )
              self.profiles.setdefault(
                  d.get('profile_name'),
                  {'data': d, 'ij_filename': d.get('install_json'), 'fqfn': fqfn},
              )
docs: Load profiles from file.
  
          Args:
              fqfn (str): Fully qualified file name.