Lord Zoltar <> wrote in news:c1675928-4d26-4753-af9b-
:
> On May 28, 1:40*pm, JCD <jcd.n...@club-internet.fr> wrote:
>> Hello.
>> In my application, I need to store the text of an HTML page.
>> For example:
>> <!DOCTYPE ht....
>> ...
>> ...
>> </HTML>
>> I modify it after, to create a new HTML page that I open in a web
>> browser.
>> I would like to store this text in my application without creating a
>> file on the hard disc.
>> I want to keep line feeds and there are many " in the text.
>> Is there a way of storing this text and how?
>> thank you.
>
> Why do you think you need to keep it in a file on the hard disc?
> Normally, getting HTML data from an internet source would result in
> the HTML data being stored into some sort of in-memory structure, such
> as as String. Writing that to disc seems like it would be extra work.
> You say you have to modify the HTML data... what sort of
> modifications? If they're fairly simple, you could just use regular
> expressions to find/replace substrings in the big string. For
> complicated modifications, maybe build a tree out of the HTML nodes,
> modify the tree, then turn your tree back into a string.
>
1st thing that came to my mind, is that he wants to create a man-in-the-
middle, editing html between a website and a browser. And not wanting to
leave traces on the disk, so that some kind of an antivirus might be able
scan it.
Of course thats funny, but it popped to my mind.