How to sort a list of Strings.

Hello guys, im new to file manipulation and i just create a file with a list of strings, ie:
AAAAAAAAA
CCCCCC
DDDDDD
EEEEEEEE
GGGG
HHH
FFFFFFFFF

I want to sort them inside the file then i need to print them to the console. How am i suppose to do that?
thankks =]
If you load them in a container you can use standard algorithms:
http://www.cplusplus.com/reference/algorithm/sort/

I want to sort them inside the file
You need to sort them in your program
Topic archived. No new replies allowed.