Ver Mensaje Individual
  #2  
Antiguo 25-10-2007
Avatar de dec
dec dec is offline
Moderador
 
Registrado: dic 2004
Ubicación: Alcobendas, Madrid, España
Posts: 13.107
Reputación: 34
dec Tiene un aura espectaculardec Tiene un aura espectacular
Hola,

Podrías probar con algo así:

Código Delphi [-]
var
  t: TStringList;
begin
  t := TStringList.Create();
  try
    t.Sorted := true;
    t.CaseSensitive := true;
    t.Duplicates := dupIgnore;
    t.LoadFromFile('C:\archivo.txt');
    Memo1.Lines.Assign(t);
  finally
    t.Free();
  end;
end;
__________________
David Esperalta
www.decsoftutils.com
Responder Con Cita