This method is used to determine if a file is indeed a file. This method is a part of the filelib library.
filename − This is the file name for which it needs to be determined if it is a file or not.
True, if the file exists and is indeed a file.
-module(helloworld). -export([start/0]). start() -> io:fwrite("~p~n",[filelib:is_file("Renamedfile.txt")]).
If the file exists, the output will be true