StreamReader
reader = File.OpenText(file.xml);string contents = reader.ReadToEnd(); MatchCollection matches1 = Regex.Matches(contents, "
count1 = matches1.Count;
produces an out of memory exception error for contents string .
Any suggestions?
StreamReader
reader = File.OpenText(file.xml);count1 = matches1.Count;
produces an out of memory exception error for contents string .
Any suggestions?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mahesh ChandPosted Aug 12, 2013, 3:07 PM
How to Perform Streaming Transform of Large XML Documents