Read File To A List Box
I'm trying to create a VB .NET program that will read a text file and then populate a checked list box with the information. Here is what the text file looks like:
Server Transport Network Address
------------ --------- --------------------
SERVER01 TCP/IP XXX.XXX.XXX.XXX
SERVER02 TCP/IP XXX.XXX.XXX.XXX
SERVER03 TCP/IP XXX.XXX.XXX.XXX
SERVER04 TCP/IP XXX.XXX.XXX.XXX
SERVER05 TCP/IP XXX.XXX.XXX.XXX
Basically, what I am looking to do is to take the server names (i.e. SERVER01) and populate the checked list box. I will probably want to use an array to store the server names. Any help would be greatly appreciated. Thanks.
I'm trying to create a VB .NET program that will read a text file and then populate a checked list box with the information. Here is what the text file looks like:
Server Transport Network Address
------------ --------- --------------------
SERVER01 TCP/IP XXX.XXX.XXX.XXX
SERVER02 TCP/IP XXX.XXX.XXX.XXX
SERVER03 TCP/IP XXX.XXX.XXX.XXX
SERVER04 TCP/IP XXX.XXX.XXX.XXX
SERVER05 TCP/IP XXX.XXX.XXX.XXX
Basically, what I am looking to do is to take the server names (i.e. SERVER01) and populate the checked list box. I will probably want to use an array to store the server names. Any help would be greatly appreciated. Thanks.