Hi,
Are you able to open the text files using another editor -- e.g., WordPad, Notepad++ etc ?
Try resetting/repairing Notepad.. assuming that Notepad is the default handler for .txt files on your computer.
Open Settings > Apps > Apps & features.
Select Notepad, and open Advanced Options.
Click Repair.
Click Reset.