Win32\'s CreateFile has FILE_FLAG_DELETE_ON_CLOSE, but I\'m on Linux.
I want to open a temporary file which will always be deleted upon program terminat
I don't see ways to do it any way simpler. This is the boilerplate any production quality program must go through; +500 lines easily.