Yes. From the documentation file: open / 2 :
Return:
{ok, IoDevice}
The file was opened in the requested mode. IoDevice is a link to a file.
[...]
IoDevice really is the pid of the process that processes the file. This process is associated with the process that originally opened the file. If any process that the IoDevice connection is associated with ends, the file will be closed, and the process itself will be completed.
legoscia
source share