this code:
also, if you wish to intermingle data from both files, you can use:
filename =('archives/loc1.txt') fichier = open(filename, "r") content_generalites= fichier.read() fichier.close() T_generalites.insert(END, content_generalites)can be simplified to:
with open(filename, "r") as fichier: for line in fichire: T_generalites.insert(END, line.strip())I don't see a second file, but just add a similar phrase for the second file
also, if you wish to intermingle data from both files, you can use:
with open(file1, 'r') as f1, open(file2, 'r') as f2: ...