Hi,
I have an unsigned char c[16]
and I need to read 2 char at a time and put those in an index. Heres what I have so far.
std::istream& function(std::istream& aIStream){
for (int i = 0; i < fSize; i++)
{
//this is not working..
// I tried static_cast<char*> and reinterpret_cast<char*> to type cast my c
aIStream.read((char*)c[i], 2);
}
return aIStream;
}
all thats in the file, if you're curious, are 4C61 6D62 6461 462F 5368 6966 7456 616C
.
What I want to happen is: c[16] = { 4c, 61, 6d, ... , 6c}