English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Este método é usado para determinar se o arquivo realmente é um arquivo. Este método é parte da biblioteca filelib.
is_file(filename)
filename −É o nome do arquivo, que é o nome do arquivo que precisa ser determinado.
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