Windows temporary files behaviour - are they deleted by the system?

前端 未结 7 2116
广开言路
广开言路 2020-12-15 03:28

Using the .net framework you have the option to create temporary files with

Path.GetTempFileName(); 

The MSDN doesn\'t tell us what happens

7条回答
  •  醉梦人生
    2020-12-15 04:03

    There is a FileOptions.DeleteOnClose option which might do what you want.

    Here is a link to the MSDN page.

提交回复
热议问题