Ok, a couple questions here. I've searched the documentation, but my documentation isn't very good.
Basically, I am converting a text-based file type into an XML-based format, and vice versa.
I am using a StreamReader and ReadToEnd() to get the entire text file into a String variable. BTW, is there a better way to do that, like ReadLine and store each line in an array? I tried, but couldn't figure it out.
I also can't figure out how to search a string and output the equivalent XML command. Are there any String-search methods buried somewhere in a library class?
Thirdly, I'm sure that C# has a bunch of XML classes and methods, but I can't find them. How does one read in an XML file, navigate through the DOM, and also output an XML file?
I know this is a lot of questions, but any replies are GREATLY appreciated.
Thanks very much!
Natwod
Basically, I am converting a text-based file type into an XML-based format, and vice versa.
I am using a StreamReader and ReadToEnd() to get the entire text file into a String variable. BTW, is there a better way to do that, like ReadLine and store each line in an array? I tried, but couldn't figure it out.
I also can't figure out how to search a string and output the equivalent XML command. Are there any String-search methods buried somewhere in a library class?
Thirdly, I'm sure that C# has a bunch of XML classes and methods, but I can't find them. How does one read in an XML file, navigate through the DOM, and also output an XML file?
I know this is a lot of questions, but any replies are GREATLY appreciated.
Thanks very much!
Natwod