I am faced with a rather large text file (200-400 lines)
The file displays a lot of data however the problem is that it is not lined up.
The data at the moment resembles this
Column1 Column2 Column3 Column4
Bobby Fisher Virginia Rural
Willis Johnson Oklahoma City
Ryan Polk Nevada Suburban
Bruno Garfield Orgeon Rural
The file uses a set number of spaces between each entry, which causes the problem.
Is there a way to possible break this up and for each word allow X amount of spaces, and if it is shorter fill in the space with spaces?
My only thought at the moment would be to pull each line from the text file and then pull each word.
Is there an easier way or am I just in a pretty big pickle?
Most of you all can guess what the end product will look like but here it is
Column1 Column2 Column3 Column4
Bobby Fisher Virginia Rural
Willis Johnson Oklahoma City
Ryan Polk Nevada Suburban
Bruno Garfield Orgeon Rural
Does this do what you need?