I want to read all files in a folder except a file named "xyz". When I reach to this file, I want to skip it and read the next one.
Currently I have the following code:
for file in glob.glob('*.xml'):
data = open(file).read()
print(file)
Obviously, this will read all files in that folder. How should I skip the file "xyz.xml"