M
Markus Hämmerli
I ll try to write a file with a iostram. It is ok for ASCII but don't work
for hex .
So when i send a "01" I get ASCII 31 but Iwant a real 01 in the file.
Thanks Markus (e-mail address removed)
This ist my code so fare:
std:fstream fileout(_T("C:\\COMbin.hex"),std::ios:ut
|std::ios::trunc|std::ios::binary);
// fileout.setf(std::ios::showbase |std::ios::hex);
int i=0x01;
fileout<< i;
for hex .
So when i send a "01" I get ASCII 31 but Iwant a real 01 in the file.
Thanks Markus (e-mail address removed)
This ist my code so fare:
std:fstream fileout(_T("C:\\COMbin.hex"),std::ios:ut
|std::ios::trunc|std::ios::binary);
// fileout.setf(std::ios::showbase |std::ios::hex);
int i=0x01;
fileout<< i;