If there is another way to show the progress through some other function?
with open(filename, \'r\', encoding=\'utf-8\') as f: contents = f.read()