Wiki

Clone wiki

SG_IniFile / Home

Pour Créer/Ouvrir un fichier Ini :

IniFile myIniFile = new IniFile("c:/directory/filename.ini");

Note: L'extension ".ini" est automatiquement ajoutée si elle est absente.

Pour enregistrer le fichier :

myIniFile.SaveFile();

Classes :

  • IniFile : Classe principale de gestion des fichiers Ini
  • Section : Représente une section du fichier Ini
  • Key : Représente une clé de la section avec sa valeur

Fonctions de la classe IniFile :

  • AddSection(string name)
  • AddSection(Section section)
  • UpdateSection(Section section)
  • RemoveSection(Section section)
  • GetSectionsList()
  • GetSection(string name)
  • HasSection(string name)

Fonctions de la classe Section :

  • KeyExist(string key)
  • AddKey(string keyName, string value)
  • RemoveKey(string keyName)
  • GetKey(string keyName)
  • GetKeys()

Updated