English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Método delete de arquivo do Erlang

Arquivos do Erlang

Este método é usado para excluir arquivos existentes.

Sintaxe

delete(filename)

Parâmetros

  • filename −Nome do arquivo a ser excluído e o destino.

Retorno

None

-module(helloworld). 
-export([start/0]). 
start() -> 
   file:delete("Duplicate.txt").

Se o arquivoDuplicate.txtExiste, será excluído.

Arquivos do Erlang