This maybe a simple problem to VB gurus out here.

I have a 4 listboxes, all 4 listboxes will be populated after I clicked the cmd_button. I need to have the items on
all 4 listboxes written to a text (or preferably rtf file if possible)


Private Sub

Cmd button_click

[INDENT]Listbox1.Add.Items ..........

[INDENT]Listbox2.Add.Items .........

Listbox2.Add.Items .........
Listbox2.Add.Items .........

End Sub


The text file doesn't exist and must be created, it can be on a fixed path say C:/output file.txt, the file content sample below:

-------------------------------------------------

The content of the 1st box is:

item 1
item 2
item 3


The content of the 2nd box is:

item 1
item 2
item 3

The content of the 3rd box is:

item 1
item 2
item 3

The content of the 4th box is:

item 1
item 2
item 3

-------------------------------------------------
Thanks in advance for the assistance -- Kathryn