reading hex value from .txt file and storing it into unsigned char array[ ]
Discussion in "General help Guidance and Discussion" started by sachinmm Apr 21, 2016.
Thu Apr 21 2016, 01:19 pm
I have a txt file, content of file is :
0x1a,0x2b,0xff,0x99,0x55
I need to store all this value into :
unsigned char tempArray[10]={0xaa,0xbb,0xcc,0xdd,0xee,0x00,0x00,0x00,0x00,0x00}.
is there any solution so that my array:
tempArray[]= {0xaa,0xbb,0xcc,0xdd,0xee,0x1a,0x2b,0xff,0x99,0x55}.
need to store values from .text file into specific location of array USING C language?
Thanking you in anticipation of favorable replies.
0x1a,0x2b,0xff,0x99,0x55
I need to store all this value into :
unsigned char tempArray[10]={0xaa,0xbb,0xcc,0xdd,0xee,0x00,0x00,0x00,0x00,0x00}.
is there any solution so that my array:
tempArray[]= {0xaa,0xbb,0xcc,0xdd,0xee,0x1a,0x2b,0xff,0x99,0x55}.
need to store values from .text file into specific location of array USING C language?
Thanking you in anticipation of favorable replies.
[ Edited Thu Apr 21 2016, 01:27 pm ]
Thu Apr 21 2016, 02:36 pm
Hello,
Did you worked on the solution .. Modified it.. as i previous reply.?
--
Karan
Did you worked on the solution .. Modified it.. as i previous reply.?
--
Karan
Fri Apr 22 2016, 11:46 am
in my previous thread i was try your solution but not work for integer now i want to try on hex values only
Thu Apr 28 2016, 06:42 am
Did you read / understand my last post to your other thread ?
http://www.8051projects.net/t64923-p10/project-help/read-contents-file-store-in-array.htm
http://www.8051projects.net/t64923-p10/project-help/read-contents-file-store-in-array.htm
[ Edited Fri May 06 2016, 04:22 pm ]
Powered by e107 Forum System