i have a text file abc.text having 32 characters only.
2b7e151628aed2a6abf7158809cf4f3c
i want to load this file in char *key[16] as below
char *key[16] ={"2b", "7e", "15", "16", "28", "ae", "d2", "a6", "ab",
"f7", "15", "88", "09", "cf", "4f", "3c"};
i use the following code
char ch; int i=0;
ifstream F("abc.txt");
while (!F.eof())
{
F.get(ch);
strcpy (key[i++] , ch); // this line is erroneous..have no idea here..
}