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

Método is_file do arquivo Erlang

Arquivos do Erlang

Este método é usado para determinar se o arquivo realmente é um arquivo. Este método é parte da biblioteca filelib.

Sintaxe

is_file(filename)

Parâmetros

  • filename −É o nome do arquivo, que é o nome do arquivo que precisa ser determinado.

Retorno

Se o arquivo existir e realmente for um arquivo, então será True.

-module(helloworld). 
-export([start/0]). 
start() -> 
   io:fwrite("~p~n",[filelib:is_file("Renamedfile.txt")]).

Se o arquivo existir, a saída será true

Arquivos do Erlang