file:close/1
关闭一个打开的文件引用
用法:
close(IoDevice) -> ok | {error, Reason}
关闭 IoDevice 这个文件引用。
{ok, Fd} = file:open("/app/rebar.config", [read, raw, binary]), file:close(Fd).
关闭一个打开的文件引用
用法:
close(IoDevice) -> ok | {error, Reason}
关闭 IoDevice 这个文件引用。
{ok, Fd} = file:open("/app/rebar.config", [read, raw, binary]), file:close(Fd).