I've got a multicolumn listbox that has block names and counts. I want to save the info to a TXT file but maintain the columns. I know how to save to a TXT file, but I don't know how to maintain those columns. Tabs won't work because some block names are longer than others and by using a tab for spacing, it may end up kicking a block count out of alignment.
Ideally what I'd like to do is have a set string length for the block names (it would need to include spaces to make up the difference of the other shorter/longer block names) and then have a set length for the block count.
I hope this is making sense.
Right now, if I save the block count info to a TXT file, it would look something like this...
EXISTING DATA/VOICE OUTLET 2
EXISTING VOICE OUTLET 4
NEW AUDIO/VIDEO OUTLET 2
NEW DATA OUTLET 2
NEW DATA/VOICE OUTLET 3
NEW VOICE OUTLET 2
But I want it to look like this....
EXISTING DATA/VOICE OUTLET | 2 |
EXISTING VOICE OUTLET | 4 |
NEW AUDIO/VIDEO OUTLET | 2 |
NEW DATA OUTLET | 2 |
NEW DATA/VOICE OUTLET | 3 |
NEW VOICE OUTLET | 2 |