Simple replacement of erlang's file driver