Yes, i am sure it is a txt file, see first attacehed image, even though it is in spanish you can see that the extension is txt. 
About the parenthesis, you are right, it is out of place. However it is not the source of the error. My code still does not recognize the second table.