I'm trying to read a file that is in byte format then append it onto another file. I'm doing this with unsigned char variable types because they're always one byte. Since the format is simply using bytes, they don't care about the character representation. However, when I read the characters in then put them out again, the '/n' character is always preceded by the '/r' character. In hexadecimal this looks like 0D0A. I have no control of this, and it seems as if it's being done automatically by the ofstream.put() function.
So, is there a way to take away this appending of characters and simply writing the raw data to the file?