How do I inform Windows that I’m writing a binary file? Raymond Chen You don't. All files are binary at the file system level.