Search found 1 match
Search found 1 match • Page 1 of 1
- Fri Dec 25, 2020 3:38 am
- Forum: Non-technical Questions
- Topic: Comparing text files from two different directories in Python
- Replies: 7
- Views: 561
Suppose there are two directories Dir1 and Dir2 containing n text files each say t1.txt, t2.txt, t3.txt, t4.txt, t5.txt ...... and tt1.txt, tt2.txt, tt3.txt, tt4.txt, tt5.txt...... I want to run a for loop such that each text file of Dir1 is compared with Dir2 and returns the matching text file. Usi...