Mothra
Well-known member
Hey all, Im still learning c# and have a question about getting certain characters out of a string. Im looking for the two characters that follow a delimiter. I want to take a string like this:
"~A ~B ~C3 ~D"
and put the characters after into an array:
myArray[0] = "A "
myArray[1] = "B "
myArray[2] = "C3"
...
The size of the array will be different every time so I need something similar to VBs ReDim Preserve as well. I can do this in VB 6.0 and .NET just fine. Anyone have any ideas on how to get it into C#?
"~A ~B ~C3 ~D"
and put the characters after into an array:
myArray[0] = "A "
myArray[1] = "B "
myArray[2] = "C3"
...
The size of the array will be different every time so I need something similar to VBs ReDim Preserve as well. I can do this in VB 6.0 and .NET just fine. Anyone have any ideas on how to get it into C#?