I have a file .txt
with a lot of information, I want to read it with python but at the same time I read it I need to fill a two-dimensional array taking the word or the data separated by the comma as a position and not each character as a position . Each data separated by a comma corresponds to a different data type. The information in the file is sorted like this:
"600900", "", "GROUP", 1, 0, 0, 4, "", 0:00, 0:00, 09JAN, 09JAN, 09JAN, 09JAN, false, 0,
In my txt file I have too much information separated by rows and each row contains 16 columns in total. What I need should look something like this:
[600900][ ][GROUP][1][0][0][4][ ][0:00][0:00][09JAN][09JAN][09JAN][09JAN][false][0]
[600800][ ][GROUP][1][0][0][4][ ][0:00][0:00][09JAN][09JAN][09JAN][09JAN][false][0]
[600700][ ][GROUP][1][0][0][4][ ][0:00][0:00][09JAN][09JAN][09JAN][09JAN][false][0]
My Python code
file=open('escrito.txt','r')
data=file.readlines()
file.close()
print (data)
Just read and print the file information