Sorry for the confusing title, as I am new to C++
Basically, what I am trying to do is, to read a simple test.txt file's content, which are just two words actually: "Hello World" and desplay thier hexadecimal content in a shell, CMD or command line.(Whatever it is called), if the text thing is confusing you here, just think of it, as if I am trying to open a simple .wav file and read it's data and display it on CMD, like you would using
#include <iostream>
#include <fstream>
using namespace std;
int main(){
fstream myFile;
myFile.open("test.txt");
//reading goes here, the problem is displaying the hex data on the editor (CMD )
return 0;
}
I am new to this, and downloaded codeblocks, so I can only work with the CMD as of now. I can open files with the fstream class, and write in it, but sadly I can not read it's hexa content.
Is there anyway to do this by simple means in C++?