Do files created with Path.GetTempFileName get cleaned up automatically?
15:26 08 Feb 2012

I've always assumed the answer is yes, but now I'm trying to find the truth.

When I create a temp file using Path.GetTempFileName(), will windows automatically clean that up later?

What about if I create a directory under Path.GetTempPath()? Will windows clean it up?

Or is it the developer's responsibility to delete files created there?

.net temporary-files