Hi there!!

This is a question regarding File I/O.
I created a text file (extension .txt) with the following format:

abc 123.1.2.3 cbefg 128.1.5.6 vwxyz 224.0.0.0 .... etc

The file will starts with a name followed by an IP address, this format will carry on till EOF with no newline characters.

The file format cannot be modified, so the question is how can I extract the names and IP addresses separately?? The names are of different length so the only thing which I can think of is to detect for the spaces in between them, but I am not sure how this can be done.

I will need the names to be in a combo box and upon selecting a name, the corresponding IP address will be displayed in another textbox.

Regards