Jun-29-2020, 07:42 PM
in my previous post, the guys showed me a nice way, but how to load it into a database?
file = 'raport.txt' array = [] with open(file, 'r') as lines: for line in lines: newlines = line.replace('###', ' ').replace('##', ' ').replace('RANGE', ' ').replace('\n', ' ').split() array.append(newlines) for line in array: print(line)