Dear friends,
sorry for my ignorance about python containers but I have the need to store (and access) 4 different values per file in folder, namely the filename (with its path) and 3 other values (string or None). When I access the database, I will need to know the 3 values of one specific file.
I am exploring different solutions, but since I am not that expert, I cannot manage to find a good one.
Should a list of tuple work well? Something like
mylist=[]
for file in glob.glob(inputpath+"\\*.txt"):
mylist.append([file, value1, value2, value3])
I was even thinking to save the tuples in a file and access them when the process is completed... but I am not sure this is the fastest/best way.
Thank you for your help,
Gianluca