I have a repeating text file that is similar to this, which I am looking to break up into individual files based on the 'Tx' indicator .... Any thoughts on how I could achieve this?
Tx1
some data
some data
Tx2
some data
some data
Tx3
some data
some data
1.Load a the file contents to memory as a string
2.Use RegEx to split
string[] lines = Regex.Split(str, "Tx^[0-9]");
3.Save each line different file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With