Compare content of 2 text files

Hi.

Is it possible to compare the content of 2 text files?

File 1:
I’m getting the data from a table through the UI and writing the data to the text file

File 2:
The table has a download option so downloaded the data as a CSV file before getting the data in the CSV and writing the data to the text file

Can it be done?