There are many ways to test if a file exists in Erlang. Here are some examples:
case filelib:is_regular(Name) of true -> io:format("File exist.\n"); false -> io:format("File dose not exist.\n") end
Categories: CookBook | FileRecipes