i am writing a file using data from a list box, I have a bunch of names in a listbox that i want to save to a file. how do i do this. i am outputing to a text file(.txt)

do i use the write function?? if yes or not how do i do it??