Ver Mensaje Individual
  #1  
Antiguo 21-02-2007
mr_mustard mr_mustard is offline
Registrado
 
Registrado: feb 2006
Posts: 8
Reputación: 0
mr_mustard Va por buen camino
Problema con Rewrite

Estoy trabajando con Delphi 7 y experimenté el sigte. caso:
PROBLEMA: no podía ejecutar el siguiente código:
AssignFile(F,'ip_servidor.txt');
Rewrite(F);
writeln(F, s);
closefile(F);

daba un error Project xxxx.exe raised exception class EInOutError with message 'I/O error 32'. Process stopped.

SOLUCION:
AssignFile(F,'ip_servidor.txt');

Rewrite(F);
writeln(F, s);
closefile(F);
No sé que tiene que ver la linea en blanco, pero solucionó el estupido problema que me ha quitado varios minutos de valioso desarrollo.
Responder Con Cita