again i like to thank everyone for there help with this.


I'm wondering how do i get the HEXVALUE to display in Hexadecimal format.
Code:

#include <fstream>
#include <iostream>
using namespace std;

int main()
{
	 char  signature[5];			//is logi
	 unsigned int   version;		//greater than 5
	 unsigned int   entries;		//number of entries

	ifstream ifs("testfile.dat", ios::binary);		//OPEN FILE
		
	ifs.read((char *)&signature,4);					//Get Signature
	signature[4] = '\0';
	
	ifs.read((char *)&version, 4);					//Get Version
	
	ifs.read((char *)&entries, 4);					//Get Num Entries

	unsigned char  lenth;							//Get Namelenth
	unsigned int nlenth;
	ifs.read((char *)&lenth,1);
	nlenth = (int)lenth;

	unsigned char *name;							//Get NAME
	name = new unsigned char [nlenth+1];
	ifs.read((char *)&*name,nlenth);
	name[nlenth]='\0';
	

	unsigned char hexinput[6];						//Get HEXVALUE
	ifs.read((char *)&hexinput,6);

	//output data to console.
	cout << "File information\n";		
	cout << "Signature: " << signature << endl;
	cout << "FileVersion: " << version << endl;
	cout << "Entries count: " << entries << endl;
	cout << "Lenth of name: "  << nlenth << endl; 
	cout << "The Name:  " << name <<endl;
	cout << "The hexvalue is: " << hexinput << endl;  //How do i make this look like the Hexadecimal value ;
	return 0;
}