Newer
Older
"""
Return a dictionary of the different values found in the receiver stats (.csv) file
"""
def read_receiver_stats(filename):
dictionary = {}
with open(filename, 'r') as f:
for line in f.readlines():
key, value = line.split(":")
dictionary[key] = int(value)
return dictionary
"""
Return a dictionary of the different values found in the sender stats (.csv) file
"""
def read_sender_stats(filename):
dictionary = {}
with open(filename, 'r') as f:
for line in f.readlines():
key, value = line.split(":")
dictionary[key] = int(value)
return dictionary