This is probably a really simple thing, but I haven’t been able to find it, and I’m probably just searching for the wrong thing…
XmlTextReader –> Does it lock the file you’re reading? I’m using reader.Read() and that’s about it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you create a new
XmlTextReaderproviding astring, it will lock the file with a write lock (but not a read lock); however, if you provide it aStream, it would depend on the stream itself.You can now read without having a lock.