How do i make a string with quotation inside?
<p>I have this in the top of a Function:</p>

<pre><code>string n = "";
string test = "T256=" + n;
</code></pre>

<p>But then test is just "T256="</p>

<p>If in the string n im doing n = "\"";</p>

<p>Then test is "T256=\" but does \ means quotation ?</p>

<p>And how can i take out an empty string for example if i have:</p>

<p>T256="Hello" so i can take out only the Hello but if i have T256="" what does it mean ? Since my program is jumping over an empty string ""</p>

<p>But i need to use it.</p>

<p>For example in my file its like this:</p>

<pre><code>T256="hello"

T256=""

T256=""

T256="hi"
</code></pre>

<p>So how do i keep to take in mind the two T256="" ? If i wont it will put the next word in the first empty T256="" and it will be like:</p>

<pre><code>T256="hello"

T256="hi"
</code></pre>

<p>And its not the way it should be. It should be in this format this is the good format:</p>

<pre><code>T256="hello"

T256=""

T256=""

T256=hello"
</code></pre>

<p>So here is my code where im taking out the text but for some reason it dosent take out places without text in between the two tags.</p>

<p>string startTag = "T256=\"";
string endTag = "\"";</p>

<p>If there is a text between this two tags it will take it out but if there is no text between this tags it will jump over to next line with text between the tags.</p>

<p>I need to take any line with T256="" even if its empty between the ""</p>

<p>So in the text file i will see a space or "" for example the text file should looks like:</p>

<pre><code>Hello

""

Hi

""

""

Hello
</code></pre>

<p>Or if not "" then empty space and when i put back the text it should also put the spaces or empty strings back too.</p>

<p>This is the code where im taking out the text:</p>

<pre><code>private void parseText(string originalFile, BackgroundWorker worker)
        {
            FormText("Parsing Text");
            int lineNumber = 0;
            string startTag = "T256=\"";
            string endTag = "\"";
            int index = 0;
            int startTagWidth = startTag.Length;
            int endTagWidth = endTag.Length;
            int fileLength = originalFile.Length;
            w = new StreamWriter(@"d:\testingdeponias.txt");
            while (true)
            {
                if (index &gt; originalFile.LastIndexOf(startTag))
                {
                    break;
                }
                int startTagIndex = originalFile.IndexOf(startTag, index);
                int stringIndex = startTagIndex + startTagWidth;
                index = stringIndex;

                int endTagIndex = originalFile.IndexOf(endTag, index);
                int stringLength = endTagIndex - stringIndex;
                if (stringLength == 0)
                {
                }
                else
                {
                    //worker.ReportProgress(20);
                    string test = originalFile.Substring(stringIndex, stringLength);
                    if (test == "")
                    {
                        MessageBox.Show(test);
                    }
</code></pre>

<p>But test is never "" i used breakpoint there and its never get to the MessageBox</p>
