t_char = 0
try:
with open(file_name) as f:
line = f.readline()t_char += len(line)
while line:
count += 1
line = f.readline()
t_char += len(line)
After Change
"st_atime (last access time seconds since epoch),"
"st_mtime (last modification time),"
"st_ctime (time of creation Windows)")
stats_keys = stats_strings.split(",")
for key, value in OrderedDict(zip(stats_keys, file_stats)).items():
print(key, " =", value)