Erlang VM manages an internal (OS-level) thread pool for I / O. Interaction with files will not block the emulator.
In general, access to files is through IoDevice, which is the process of exchanging data with codes for input / output. If you work a lot with files, this may slow down.
file:open/2provides a mode rawfor quick, direct read / write of files.
source
share