Delete Arquivo
// Check the existence of the file
IF fFileExist("Copy1.txt")=False THEN
Error("Copy1.txt not found in the current directory")
RETURN
END
// Delete the file
fDelete("Copy1.txt")
IF ErrorOccurred THEN
Error("Error deleting copy1.txt",ErrorInfo())
RETURN
END
// The deletion is successful
Info("The Copy1.txt file was deleted")
Nenhum comentário:
Postar um comentário