"Thanks but is it crashing the app in any way? All that does is to read the file, does not parse its content."
It does asume its a text file, you map it to an "OrderedDict()" which is text only, so on binary files it threw an error for me...
Thats not what the documentation says:
"An OrderedDict is a dict that remembers the order that keys were first inserted. If a new entry overwrites an existing entry, the original insertion position is left unchanged. Deleting an entry and reinserting it will move it to the end."
It does not sort any element and, event if it did, the keys are always the file name.