I have some data and I am trying to read a txt file and read it line by line in excel by implementing a specific column number. For example:
0.12345 0.14251 0.12155...... 0.25541
And say after filling up 1000th column I want to put the next data into the next line:
0.12345 0.14251 0.12155...... 0.25541
0.15845 0.17151 0.19255...... 0.23572
I understand that if I have some kind of string (eg.~) after that number I want to split, this could be done using data.split like so:
data = testingdata.readline() #reading a line from the .txt file
data = data.split("~") #filter the ~ and put that into the next row
But in this case, I only know the column number I want to split rather than a known string. How could I possibly implement the same method here?
Thank you so much in advance for help!