Hello,
I have a text document that contains a load of ‘IP Scanned Results’, which basically looks like this:
Name: DEVICE_1, Device Type: PHONE_1, IP: 192.168.1.54, MAC: 00:00:00:00:00:00, Last Seen: 06-10-2014 14:23:12
Name: DEVICE_2, Device Type: PHONE_2, IP: 192.168.1.54, MAC: 00:00:00:00:00:00, Last Seen: 06-10-2014 14:23:12
Name: DEVICE_3, Device Type: PHONE_3, IP: 192.168.1.54, MAC: 00:00:00:00:00:00, Last Seen: 06-10-2014 14:23:12
This text file is dynamic (the text in Caps are the dynamic keywords). How can I separate them out into arrays such as:
var Name : String[];
var Type : String[];
var IP : String[];
var MAC : String[];
var LastSeen : String[];
I was messing around with the ‘Split’, like this:
Split("Name:"[0]);
But all that did was:
Element 0 :
Element 1 : ame: DEVICE_2, Device Type: PHO
Element 2 : E_2, IP: 192.168.1.54, MAC: 00:00:00:00:00:00, Last Seen: 06-10-2014 14:23:12
Which makes no sense. Could someone point me in the right direction?