hi people i need help to do an extraction of string from a file and then check the string against another string to see if they match and increment a counter for the exact match and non-matched char.
For example in abc.txt file i have a string "pfpfpfpfpfpfffpppfff"
then i have another file check.txt and a string "fppfpfpff pffpppf f"
how can i get do a check on the strings and then output the matched chars and also the un-matched ones and also have another counter to keep tracked of empty spaces?
Basically, I would open a stream to one file, then use getline() to get the line into a string. I would then do that for the other file, and then iterate through the strings, checking each part and seeing if they match.