Apr-06-2018, 06:26 PM
(This post was last modified: Apr-06-2018, 06:26 PM by A_Embedded.)
I am new to python. I am trying trying to use it for the problem as follows:
I have one file with 3 coloums of 32 bit data in hex representation. Second file is also 3 coloums but showing only one or two bits in binary representation that is my look up table.
Comparing two files records in such a way that on each iteration from first file picking one combination of bits (2bits) for 3 fields in record compare them to record in look up table I.e file 2.
E.g
File 1 record hex:
A8000001 0000000 64000000
File 2 data binary :
10 00 01
One iteration picks 01 compares to file2 first coloums data I.e 10 then file 1,2nd coloums 2 bits 00 with 2nd file 2nd coloums in same row it's 00. So on.
Kindly suggest a solution or a hint how to implement it.
I have one file with 3 coloums of 32 bit data in hex representation. Second file is also 3 coloums but showing only one or two bits in binary representation that is my look up table.
Comparing two files records in such a way that on each iteration from first file picking one combination of bits (2bits) for 3 fields in record compare them to record in look up table I.e file 2.
E.g
File 1 record hex:
A8000001 0000000 64000000
File 2 data binary :
10 00 01
One iteration picks 01 compares to file2 first coloums data I.e 10 then file 1,2nd coloums 2 bits 00 with 2nd file 2nd coloums in same row it's 00. So on.
Kindly suggest a solution or a hint how to implement it.