Merely opening the ofstream in binary mode does not change the way that the << operators work – they will always perfform formatted output. You need to use the stream’s write() function, which does unformatted output.
More Related Contents:
- How does the Import Library work? Details?
- strptime() equivalent on Windows?
- How can I clear console
- Export all symbols when creating a DLL
- How do I calculate the week number given a date?
- boost_1_60_0 .zip installation in windows
- How to read a value from the Windows registry
- How to properly replace global new & delete operators
- Porting clock_gettime to windows
- Win32 programming hiding console window
- Prevent user process from being killed with “End Process” from Process Explorer
- Parsing strings of user input using the cparse library from git
- How to get screenshot of a window as bitmap object in C++?
- Microsecond resolution timestamps on Windows
- Read process memory of a process does not return everything
- How to read the screen pixels?
- What is the purpose of the _chkstk() function?
- Clang C++ Cross Compiler – Generating Windows Executable from Mac OS X
- How do I add the MinGW bin directory to my system path?
- Programmatically access CPU fan on a laptop? (Windows)
- changing the directory from inside a c program under windows using system command
- What’s the differences between .dll , .lib, .h files?
- VC++ fatal error LNK1168: cannot open filename.exe for writing
- Get base address of process
- How can CString be passed to format string %s?
- EnumDisplayDevices vs WMI Win32_DesktopMonitor, how to detect active monitors?
- Passing reference to STL vector over dll boundary
- Getting another process command line in Windows
- Visual Studio 2013: CL.exe exited with code -1073741515
- How can I cin and cout some unicode text?