Hey people,I've been searching for hours now about how to read bytes from a file.
What I want to do,is open an .exe file,take the bytes and output them as binary(100101)/hex(FFA2)...

I have searched this in plain c++ and Qt as well..but none good answer.
All I get are some strange chars,or a string "MZP" in console....

I have tried QFile,QIODevice,QByteArray..but no result.

Can anyone please explain me how to do this?

Thanks.