There are some standard tools for this, but I need a simple graphical interface to help some users (on windows). They open a dialog box with an open file and select a file for processing.
The file will be an XML file. The file will contain (within the first few lines) a text line that should be deleted or replaced with a space (no matter which).
The problem is that the XML file is several gigabytes in size, but a fixed search and replace string will occur within the first 4 thousand or so.
What is the best way to rewrite the search string and keep it in place without requiring you to read the whole amount into memory and write too much to disk?
bugmenot
source
share