Get the next character after a certain characters position
<p>I am currently trying to read in a log file that consists of [content]. The message in between the brackets might not necessarily be the same length. </p>

<p>I know that the content will start from character position 28 but I then need a way of doing a substring to only get the content upto the next ]. I.e. if I do a substring it will show content. </p>

<p>I have tried <code>line.Substring(28, line.IndexOf(']'));</code> but this doesn't seem to get the next ] after position 28, instead gets the first ] at the beginning of the line. </p>

<p>Thanks for any help you can provide. </p>
