I have two questions regarding Erlang file i/o; what is the best way to achieve in Erlang:
- reading large binary files (many gigabytes) without copying the whole file into memory
- reading a gzipped binary file as a decompressed stream
Thanks!
I have two questions regarding Erlang file i/o; what is the best way to achieve in Erlang:
Thanks!
file:read/2
for sequential block access and file:pread/2,3
for random access.compressed
option in file:open/2
.