Spaces:
Sleeping
Sleeping
File size: 453 Bytes
e6a0092 bf9909e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | def read_file_to_dic(file_path):
dic = {}
with open(file_path, 'r') as file:
for line in file:
# Skip comments and empty lines
if line.strip() and not line.startswith('//'):
key, value = line.strip().split('=', 1)
values = value.split(';')
dic[key] = values
return dic
def read_file(file_path):
with open(file_path, 'r') as file:
return file.read() |