Excluir arquivo depois da leitura

Delphi

08/04/2003

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


Anonymous

Anonymous

Curtidas 0

Respostas

Anonymous

Anonymous

08/04/2003

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]


GOSTEI 0
POSTAR