A simple way to copy raw bytes in files in C++
Posted: Tue Dec 25, 2007 12:32 am
Ok, I am fairly new to iostreams, and this is just starting to get annoying...
I can't figure out how the crap to just copy one byte out of the file and into an array..
I can't figure out a way to get the total file size of the stream, or to read a single character *easily*
I mean, their is the get(), but that does formatting, and can be complicated with raw binary files, I don't need formatting, I just need the raw bytes!
I can't figure out how the crap to just copy one byte out of the file and into an array..
I can't figure out a way to get the total file size of the stream, or to read a single character *easily*
I mean, their is the get(), but that does formatting, and can be complicated with raw binary files, I don't need formatting, I just need the raw bytes!