i'm try to use streamwriter to save the data from a listbox (in C#) to a text file, but my code is saving the ojectcollection instead of the data from the listbox.
a) data saved to text file is "System.Windows.Forms.ListBox+ObjectCollection"
b)FileStream dFile = new FileStream("C:\\temp\\data.txt", FileMode.OpenOrCreate);StreamWriter sw = new StreamWriter(dFile)
C) please advise how to load data from the saved text file to a lisbox?
thanks