cha * to char conversion

I have an char array like bellow;
char Qbite[] = {'0','0','3','3','R','B','I','T','E','S',0x35,0x31,0x02,0x71,0xa7,0x31) };

and I read a file line by line to a string like bello;
while ( getline (myfile,line[0])

my file contains a line such as : Magnetron Temperature =0x20
if my line contains "Magnetron Temperature" then i will get its hex value and put it into three strings;
found = line[0].find("Magnetron Temperature");
if (found!=std::string::npos)
{
line[1] = line[0].substr(line[0].size()-14, 4);


line[1] will have 0x20.
I can convert the string to char * by using line[1].c_str() function, but how may I replace Qbite[15] with the content of line[1]?
Last edited on
What's wrong with?
 
 Qbite[15] = line[1];

Topic archived. No new replies allowed.