dimanche 31 juillet 2016

Binary file into STL char array

I am trying to read a binary file into a STL Vector of chars. I have used the following link as reference: reading the binary file into the vector of unsigned chars

I also converted this in MATLAB and the results the I got in MATLAB were 83 84 1 1 0 0 0 0 0 0 0 184 21 176 221 14 248 4

But the results of the above C++ implementation are S T ..........

I understood that 83 -> S, 84 -> T but how do I get the output like that of MATLAB?

Thanks

Aucun commentaire:

Enregistrer un commentaire