I am using following code to split a text file where the file path is provided through textbox
string[] allFiles = System.IO.Directory.GetFiles(@"textBox1.Text);
foreach (string file in allFiles)
Regex.Split(textBox1.Text, {"<ty>"});
but getting an error
My need is read a large text file and split it based on <th> tag and save them as different text files
thnks in advance