Ok, I have this string Player.Character with this in it "Average Man{[Attributes (Mind 10) (Body 10) (Soul 10)]}".
And I have this do-loop set up so that it should be going through this string 1 character at a time and seeing if its this "[" while adding each character it checks to another string ContainerName. The thing is ContainerName only has this in it "[" and I want it should have "Average Man{".
If some one could help me understand why it that this is happening and possibly a solution that my amature mind could handle I would be most gracious.
O ya, here be my code.
int count = -1;
string ContainerName = "";
//Finds Start of container
do
{
count = count + 1;
ContainerName = ContainerName + Player.Character[count].ToString();
} while (Player.Character[count].ToString() != "[" &&
Player.Character.Length - 1 > count);
textBox1.Text = ContainerName;