I
want to divide into parts a stream, a text. I explain: I have a xml file, desire that it be uploaded to stream (already done) but now I want to
divide into parts when the tag appears AND save to variables or an array:
200702060470023090
03
02
0470023090
18
02
In this case two parts but the entire xml file has much more!
I tried: string[] producto = str.Split('');
But error... :-(
Thanks in advanced!
In this case two parts but the entire xml file has much more!
I tried: string[] producto = str.Split('
But error... :-(
Thanks in advanced!
DiogoPosted May 5, 2008, 11:38 AM
while (!sr.EndOfStream)
{
str = sr.ReadLine();
Regex regex = new Regex("
products = regex.Split(str);
}
I founded this soluction!