how do i open a file that will open a text file and sort it aand find all the palindromes in the list?