Discussion in "General help Guidance and Discussion" started by    sachinmm    Apr 21, 2016.
Thu Apr 21 2016, 07:49 AM
#1
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.


[ Edited Thu Apr 21 2016, 07:57 AM ]
Thu Apr 21 2016, 09:06 AM
#2
Hello,

Did you worked on the solution .. Modified it.. as i previous reply.?

--
Karan
Thu Apr 21 2016, 09:16 AM
#3
yes but not copy this value in array properly...
Thu Apr 21 2016, 09:17 AM
#4
Which Complier you are using ? Which MCU ?
Fri Apr 22 2016, 04:39 AM
#5
gcc and this code for desktop only...
Fri Apr 22 2016, 06:16 AM
#6
in my previous thread i was try your solution but not work for integer now i want to try on hex values only
Fri Apr 22 2016, 06:32 AM
#7
is any solution on hex value data for read and store??
Thu Apr 28 2016, 01:12 AM
#8
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


[ Edited Fri May 06 2016, 10:52 AM ]

Get Social

Information

Powered by e107 Forum System

Conversation

Fri Apr 09 2021, 02:02 PM
Hong
Quality articles is the secret to interest the users to visit the site, that's what this web page is providing. christian dating sites https://datingsitesww.com
Fri Apr 09 2021, 03:53 AM
QGWIJ38V49HEBD3WXF www.web.de
I have a small question for you
Thu Apr 08 2021, 06:26 PM
Lilly
Post writing is also a fun, if you be familiar with afterward you can write otherwise it is complex to write. dating sim https://onlinedatingtind.com/
Thu Apr 08 2021, 12:35 PM
Fredericka Horn
Thanks, Fredericka Horn
Thu Apr 08 2021, 12:03 PM
Ronaldwhits
https://coin2x.org

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 117, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123