Ver Mensaje Individual
  #6  
Antiguo 04-07-2007
mierda mierda is offline
Miembro
 
Registrado: may 2006
Posts: 129
Reputación: 21
mierda Va por buen camino
1 ejemplo

teniendo el siguiente fichero ini

Código Delphi [-]
[VARIOS]
REFRESCO=5000

interactuar con el ini

Código Delphi [-]
 
ini: TIniFile; // definimos el ini

escribir en el ini

Código Delphi [-]
 
ini := Tinifile.Create(inidir + '\' + 'confmes.ini');
ini.WriteString ('VARIOS','REFRESCO',inttostr(aux));
ini.free;

leer del ini

Código Delphi [-]
 
ini := Tinifile.Create(ruta + 'confmes.ini');
ract := ini.ReadString('VARIOS','REFRESCO','');
ini.free;


saludos
Responder Con Cita