I have to process giant XML files that are 6GB+ in size. The problem is that there are no line breaks in the file, and the XML is improperly formatted (no root element). Therefore I can't use the XML class to read the file, and I can't open the file in any text editor or even "Type" it in a command window because the 1 line in the file is over 6GB.
The file contains UTF8 characters. What I want to do is first write a program just to read and display 100 characters at a time so I can look at the contents. Next I want to be able to create a new file, write a root element, read/write the contents of the file and then write the closing root element.
Can anyone provide a code snippet of how to read and display the file contents 100 characters at a time. I can then figure out the rest.
View Complete Post