Hi,
I've got an XML file where one of the XML tags marks the beginning of a binary part of the file.
I can use a textreader to read the text bits without any problems.
I can use a binaryreader to read the binary bits (if I strip out all the xml bits 1st).
My plan was to use the text reader to find the beginning of the binary section of the file and then pass that position to the binary reader to read it in, but I couldn't find a way to pass the position of where I was in the file.
Plan B was not to bother with a textreader, but use binaryreader.ReadString.
I can get Readstring to read the text part of the file, but it reads in several lines (or parts of lines at a time) at a time. Readstring can take a parameter, but I can't work out what it does (it just returns a single character).
Any thoughts greatly received.
Kristian
I've got an XML file where one of the XML tags marks the beginning of a binary part of the file.
I can use a textreader to read the text bits without any problems.
I can use a binaryreader to read the binary bits (if I strip out all the xml bits 1st).
My plan was to use the text reader to find the beginning of the binary section of the file and then pass that position to the binary reader to read it in, but I couldn't find a way to pass the position of where I was in the file.
Plan B was not to bother with a textreader, but use binaryreader.ReadString.
I can get Readstring to read the text part of the file, but it reads in several lines (or parts of lines at a time) at a time. Readstring can take a parameter, but I can't work out what it does (it just returns a single character).
Any thoughts greatly received.
Kristian