3 ms·
What's your alternate recipe for success?
by wfunction 10y ago
What's your alternate recipe for success?
- asveikau 10y agoI don't think I have one unfortunately. It depends greatly on the scenario. Usually I'd say come up with a unique name if you can. Otherwise I'd say try to overwrite (possibly overwrite via rename, rather than CreateFile, to avoid the data loss you mention). I've even written some code to rename to a unique name first, then delete.