Windows temp directory details (Java)

后端 未结 7 2251
一生所求
一生所求 2020-12-20 15:12

I\'m writing a program that needs a generic temp folder. I\'m trying to find details about the Windows Temp folders. There are two paths that I know about -

7条回答
  •  我在风中等你
    2020-12-20 15:31

    This will give you the path to the windows temp directory in Java.

    File.createTempFile("temp-file", "tmp").getParent()
    

提交回复
热议问题