Excluir arquivo depois da leitura
08/04/2003
0
Turma, tenho um rotina que lê um arquivo texto dentro do windowns, e gostaria de exclui-lo após esta leitura. como fazer?
sd
Jr
sd
Jr
Anonymous
Curtir tópico
+ 0
Responder
Posts
08/04/2003
Anonymous
Use as rotinas de manipulaçao de arquivos do Delphi:
//Fragmento tirado do Help
[b:ea1ff35124]Deletes a file from disk.
Unit
Sysutils
Category
file management routines
function DeleteFile(const FileName: string): Boolean;
Description
DeleteFile erases the file named by FileName from the disk. If the file cannot be deleted or does not exist, the function returns False.[/b:ea1ff35124]
//Fragmento tirado do Help
[b:ea1ff35124]Deletes a file from disk.
Unit
Sysutils
Category
file management routines
function DeleteFile(const FileName: string): Boolean;
Description
DeleteFile erases the file named by FileName from the disk. If the file cannot be deleted or does not exist, the function returns False.[/b:ea1ff35124]
Responder
Clique aqui para fazer login e interagir na Comunidade :)