public static function addEntriesToFile($file, $entries) {
        $properties = self::readFromFile($file);
        foreach ($entries as $key => $value) {
            $properties[$key] = $value;
        }

        self::saveToFile($file, $properties);
    }