Hi all,

consider the following

xyxy9=ABC:ADC:uio
xyoy10=DEF:DCF:uip
...........................
..............................
100 lines


I want to compare the strings ABC and ADC........similarly DEF and DCF..... if they are equal then no operation is done else they are written in a single array

thanks in advance.

That's simple just open the file in notepad and read line by line.. if they are same don't do anything else write them in a single array.. !

I'd use serial calls to getline to parse the file.

#1 read information up to = and ignore input
#2 read information up to : and save
#3 read information up to : and save
compare #2 and #3 and do whatever
#4 read informtation up to newline and ignore input

Repeat as many times as needed.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.