D
das
Hi All,
I want to process a file in chunks, meaning I have a big file of
50K rows. I want to process 5K rows at a time.
I am using StreamReader object and looping through each row and process
it, and as I process it I create an XML file and send it to DB to be
processed.
while(oSR.Peek() > -1)
{
// 1. Create Xml from these lines
}
// 2. Call DB Functions.
How do I read only certain number of lines at a time, complete my steps
1 and 2 and come back and read another 5K lines and so on....
any ideas gurus?
thanks
I want to process a file in chunks, meaning I have a big file of
50K rows. I want to process 5K rows at a time.
I am using StreamReader object and looping through each row and process
it, and as I process it I create an XML file and send it to DB to be
processed.
while(oSR.Peek() > -1)
{
// 1. Create Xml from these lines
}
// 2. Call DB Functions.
How do I read only certain number of lines at a time, complete my steps
1 and 2 and come back and read another 5K lines and so on....
any ideas gurus?
thanks