Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Visual Basic .NET (http://www.programmingforums.org/forum19.html)
-   -   Writing Data To A Text File From Listboxs (http://www.programmingforums.org/showthread.php?t=1514)

VbNewPerson Dec 12th, 2004 3:28 PM

Hi all. What I have is 5 different listbox's next to eachother. The information in each listbox entry makes a row. For example,

ListBox1 ListBox2 ListBox3 Listbox4 ListBox5
Steve____Jones____21___price____street
Ann_____ Thomas__56___cliff_____street

I need to be able to loop through the listbox's and write the contents of them to a txt file (notepad) and in the right order (there will always be the same number of entries in all listbox's). Something like:-

Steve
Jones
21
price
street
Ann
Thomas
56
cliff
street
etc

I also need to be able to then open an existing txt file and read back the data and write them to the listbox's correctly, working backwards basically. This has me some what stuck, so any help would be appreciated.

cheers

Overmind Dec 12th, 2004 3:41 PM

HERE
That should do it . simple google search... :P
That just shows how to read and write from files.


All times are GMT -5. The time now is 7:38 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC