Combining Files

Combine Files fstream is fast and is good for combining large files together without needing to read in each file. Combine 2 files (can be any file type): #include <fstream> std::ifstream ifstream1("a.bin", std::ios_base::binary); std::ifstream ifstream2("b.bin", std::ios_base::binary); std::ofstream ofstream1("c.bin", std::ios_base::binary); ofstream1 << ifstream1.rdbuf() << ifstream2.rdbuf(); Adding some bytes to the output file: BYTE MyByteArray[3]; MyByteArray[0] = 0x01; MyByteArray[0] = […]

Read More