本文介绍了当打开进程终止时,文件将自动关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个进程,它使用file:open打开文件。这个文件会自动关闭,当我的进程将终止?解决方案
是的。从的文档:
I have a process, which opens the file by using file:open. Will this file get automatically closed, when my process will terminate?
解决方案
Yes. From the documentation of file:open/2:
[...]
这篇关于当打开进程终止时,文件将自动关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!