Need help sorting a list of companies

I have a problem that i can't quite figure out how to solve.

I have a txt document containing the name and address of a couple hundred companies. I'm trying to sort these companies into alphabetical order and then output them into another txt document.

If i were to use strings i would need 200 different string names and it would be a real mess and then i'd need to sort them (which would be an easier task than making 200 names of strings)

Oli
Use a vector of strings.
Thank you cire. I should've figured that out myself but i haven't had much experience with vectors cause i've always found some way around them.
Topic archived. No new replies allowed.