I have a .txt file which looks like this
So as you can see there is no specific delimiter. Same number of spaces exist after the first column however all names have different lengths because of which the number of spaces in the next column is varying.
I thought of adding a for loop iterating through a name and it'll increment the value of a variable whenever it detects a space. And as soon as I get two spaces then it'll move to the next column. But this solution won't work because some people have middle names. And sometimes their name might be extremely long and it'll fill up the entire column.
So what algorithm should I use to solve this issue. I'm coding on C# btw.