(1)I have two txt files. one with 6-bit binary codes and a corresponding letter, and the other with a coded message in aforementioned 6-bit code.
(2)I want to write a program to read the first txt file and store the 6-bit binary codes into one array and the corresponding letter into another array and finally the coded message into a third array.
(3)Then search each 6-bit string in the message array until it finds a match from the binary codes array
(4 and writes that letter from the letter array into a third external txt file.
So far I have (1) and (2). My code for (3) is either not searching or not writing the decoded message to the output file. I commented where the problem is