Open text file into listbox

Invisionsoft

Well-known member
Joined
Apr 20, 2007
Messages
64
Location
United Kingdom
Programming Experience
1-3
How do I Open text file into listbox?

Oh and I am looking at .NET 2.0.

I have tried lots of things, non of them seem to work.... Can you help?


Oh to avoid confusion I mean for each line in text file add to listbox, e.g if listofitems.txt was:

hello
Hi
Boo!

Then the listbox would be:

Hello
Hi
Boo!

i can SAVE items, as in the listbox.items is a collection, so you could use a for each loop, but visa versa.....




- James
 
Back
Top