I am trying to create a tab delimited text file so that the output appears as columns, but for some reason the tab appears in different places. This is because data values โโhave different sizes.
this is how i build rows and columns
output.append("|\t" + column1 + "\t\t\t:\t" + column2 +" \t\t\n");
And the way out comes out like
| activeSessions : 0 | duplicates : 0 | expiredSessions : 0 | rejectedSessions : 0 | sessionMaxAliveTime : 0 | sessionCounter : 0
As you can see the values โโwith longer text entries in the first column, the second column moves a little further, although both columns are separated by two tabs. How can I make sure the second column location is on the same row?
thanks
ziggy source share