directory = r'/home/bugramatik/Desktop/Folder'
for filename in os.listdir(directory):
file = open('/home/bugramatik/Desktop/Folder'+filename,'r')
print(BinaryToString(file.read().replace(" ","")))
I want to read all files inside of the a folder same order with folder structure.
For example my folder is like a b c d
But when I run the program at above it shows like c a d b
How can I read it like a,b,c,d?