I'm assuming that the data in your text file will already be sorted, since that's what it looks like here.
This should be a very simple algorithm, then. All you need to do is read each string into a string array, find the halfway point (if the array has an odd number of elements, you can assume the two halves are not equal, since equal halves will only be able to add up to an even amount), and then compare the values of the first half with the 2nd half one by one. As soon as you find one that doesn't match, you can drop out of the sequence and return an invalid match. The pseudocode would be as follows:
Read each line in file into string array.
If length of string array is even,
Let "half" = array length / 2.
Loop on "i" from zero to "half" (exclude half from the loop):
if array[i] != array[half + i],
The halves are not matched.
Exit loop.
end if
end loop
else (the length of the string is odd)
The halves are not matched.
end if.
There are a few lines missing from the pseudocode above, specifically the return types (match or no match). You'll have to implement a way to make sure it returns the proper value depending on the outcome. But besides that, the gist of the algorithm is there and you should be able to go from that.
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid