Advertisement
Asinka

ExtractContentFormXML

Jan 31st, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. using System;
  2. using System.IO;
  3. using System.Text;
  4. using System.Text.RegularExpressions;
  5.  
  6.  
  7. class ExtractContentFormXML
  8. {
  9.     static void Main()
  10.     {
  11.         using (StreamReader inputFile = new StreamReader("Input.txt");)
  12.         {
  13.             using (StreamWriter outputFile = new StreamWriter("Output.txt");)
  14.             {
  15.                 string fileContent = inputFile.ReadToEnd();
  16.                 string content = Regex.Replace(fileContent, "<(.*?)>", " ");
  17.                 outputFile.WriteLine(content);
  18.             }
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement