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

Thu May 06 2021, 01:11 PM
Karen
Hello, constantly i used to check blog posts here in the early hours in the morning, since i like to find out more and more. Local Dating https://datingsitesww.com
Thu May 06 2021, 12:33 PM
Shalanda
It's an remarkable article in support of all the web people; they will get benefit from it I am sure. senior dating sites http://onlinedatingdd.com/
Thu May 06 2021, 10:24 AM
Felisha
What's Taking place i am new to this, I stumbled upon this I have discovered It absolutely useful and it has aided me out loads. I hope to contribute & help other users like its helped me. Good job. match dating https://onlinedatingtind.com/
Tue May 04 2021, 08:34 PM
Chastity
Hi there! I could have sworn I've been to this site before but after browsing through some of the post I realized it's new to me. Anyways, I'm definitely glad I found it and I'll be book-marking and checking back frequently! check my score https://creditscorecheckn.com
Tue May 04 2021, 06:39 PM
Clarence
What's up everyone, it's my first go to see at this web page, and post is really fruitful in support of me, keep up posting these types of articles. Best Credit Score https://creditscoresids.com

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: 121, Members: 0 ...

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

Members: 38215
Newest member: Mirza123