Question : MessageBox.Show problem

Within my code, I have a function as seen in the attached code. When I un-comment the Messagebox.Show(contents) portion of the code, when in debug mode, the debugger hits that line of code, and then drops back out to the function that originally called it without finishing the rest of the code and breaking out of the For loop. Why is this happening?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
for(;;)
            {
                if ((File.GetAttributes(@"c:\aciftp.txt") & FileAttributes.ReadOnly) != FileAttributes.ReadOnly)
                {
                    FileStream fs = new FileStream(@"c:\aciftp.txt", FileMode.OpenOrCreate, FileAccess.Write);
                    StreamWriter sw = new StreamWriter(fs);
                    sw.BaseStream.Seek(0, SeekOrigin.End);
                    sw.WriteLine(contents);
                    sw.WriteLine(DateTime.Now);
                    //MessageBox.Show(contents);
                    sw.Flush();
                    sw.Close();
                    break;
                }
            }

Answer : MessageBox.Show problem

Within publisher itself, there does not appear to be any way to apply formatting to the entire document, except on a limited basis such as through the creation of custom font schemes.  If you have a large document, you could try exporting the document to word.  Word applies formatting changes to the entire document.  See this link for word:   http://word.mvps.org/FAQs/Formatting/WholeDocumentReformatted.htm
Random Solutions  
 
programming4us programming4us