file-handling

Tag

Cards List
#file-handling

I opened a file with FILE_FLAG_DELETE_ON_CLOSE, but now I changed my mind

The Old New Thing (Raymond Chen) · 2026-07-06 Cached

Explains that FILE_FLAG_DELETE_ON_CLOSE is irreversible, but you can achieve conditional deletion by using SetFileInformationByHandle to toggle the delete disposition.

0 favorites 0 likes
#file-handling

How do I inform Windows that I’m writing a binary file?

The Old New Thing (Raymond Chen) · 2026-05-04 Cached

This article explains that Windows does not have a built-in concept of binary vs. text mode at the OS level; such distinctions are handled by runtime libraries like the C runtime. It clarifies that all files are treated as bytes by Windows and that content transformations must be done manually or via libraries.

0 favorites 0 likes
← Back to home

Submit Feedback