I want to compare a text file having some filenames
with another text file that has the list of files but with extentions
For example:
TextFile 1 contains the following text:
filename1
filename2
The file with which I want to compare may have the list of same files but with some extentions.
filename1-abc.ext
filename2-xyz.ext
Now I want to write a code in python that will compare the 1st text file with the second one and tell me whether they exist in the second textfile by ignoring the extensions.
Aucun commentaire:
Enregistrer un commentaire