Well, I'm only a few months into VB so I suck with parsing stuff. Used to PHP's preg_match(). :P
Anyway I have loaded the following string from a file:And I want to load it into some soft of 2d array.Code:config { Key1 "Value1"; Key2 "Value2"; Key3 { "Value3"; "Value4"; }; };
arr("Key1") = "Value1"
arr("Key2") = "Value2"
arr("Key3")(0) = "Value3"
arr("Key3")(1) = "Value4"
Ideas? Other then looping though string char at a time. lol




Reply With Quote