1. If I have a listbox named lstDB and a commandbutton named cmdSave, how do I make it that whenever I press on cmdSave, it will save the items on lstDB on a txtfile, but it has to be sorted like this. If on the list I have this:

Bla
Bla
Bla
Bla2
Bla2
Bla3
Bla3
Bla3
Bla3

then on the TXT I'll have this:

x3 Bla
x2 Bla2
x4 Bla3

2. How do I open the TXT I saved? (see previous question)