//读取内容 
 
 
 

   StringBuilder sbContent = new StringBuilder(); 
 
 
 

   using (StreamReader sr = new StreamReader(Application.StartupPath + "/content.txt")) 
 
 
 

   { 
 
 
 

       string line; 
 
 
 

       while ((line = sr.ReadLine()) != null) 
 
 
 

       { 
 
 
 

           //双引号开头,中间处理换行 
 
 
 

           if (line.Length > 0 && line[0] == '"') 
 
 
 

           { 
 
 
 

               string temp = line.Substring(1); 
 
 
 

               while ((line = sr.ReadLine()) != null) 
 
 
 

               { 
 
 
 

                   if (line.Length > 0 && line[line.Length - 1] == '"') 
 
 
 

                   { 
 
 
 

                       temp += line.Substring(0, line.Length - 1); 
 
 
 

                       sbContent.Append(temp + "\r\n"); 
 
 
 

                       break; 
 
 
 

                   } 
 
 
 

                   else 
 
 
 

                   { 
 
 
 

                       temp += line; 
 
 
 

                   } 
 
 
 

               } 
 
 
 

           } 
 
 
 

           else 
 
 
 

           { 
 
 
 

               sbContent.Append(line + "\r\n"); 
 
 
 

           } 
 
 
 

       } 
 
 
 

   }