Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- using System.Text;
- using System.Text.RegularExpressions;
- class ExtractContentFormXML
- {
- static void Main()
- {
- using (StreamReader inputFile = new StreamReader("Input.txt");)
- {
- using (StreamWriter outputFile = new StreamWriter("Output.txt");)
- {
- string fileContent = inputFile.ReadToEnd();
- string content = Regex.Replace(fileContent, "<(.*?)>", " ");
- outputFile.WriteLine(content);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement