Ver Mensaje Individual
  #4  
Antiguo 19-01-2007
Avatar de seoane
[seoane] seoane is offline
Miembro Premium
 
Registrado: feb 2004
Ubicación: A Coruña, España
Posts: 3.717
Reputación: 24
seoane Va por buen camino
¿Podria servirte esto?

Código Delphi [-]
procedure Escribir(Archivo: String; Str: String);
begin
  with TStringList.Create do
  try
    if FileExists(Archivo) then
      LoadFromFile(Archivo);
    // Supongo que como numero secuencial nos puede servir Count
    Add(IntToStr(Count) + ' - ' + Str);
    SaveToFile(Archivo);
  finally
    Free;
  end;
end;


// Por ejemplo
Escribir('c:\1.txt',TimeToStr(Time));
Responder Con Cita