Current section

Files

Jump to
dream_test src dream_test_gherkin_parser_ffi.erl
Raw

src/dream_test_gherkin_parser_ffi.erl

-module(dream_test_gherkin_parser_ffi).
-export([read_file/1]).
%% Read a file and return its contents as a binary string
read_file(Path) ->
case file:read_file(Path) of
{ok, Binary} -> {ok, Binary};
{error, _Reason} -> {error, nil}
end.