Forum: Algorithmen, Datenstrukturen und Klassendesign
by Dalai,
18. Jan 2020
See my EDIT. StringReplace can be used after determining the tags' offsets and getting the text via Copy function (using the previously determined offsets).
Regards
Dalai
Forum: Algorithmen, Datenstrukturen und Klassendesign
by Dalai,
17. Jan 2020
Well, the easy way would be something like this: Read the file into a TStringList variable (TStringList.LoadFromFile) and replace everything in TStringList.Text from (and including) <header> to </header> with "<header>your_new_text</header>" with the StringReplace function. However, I doubt that this will be the fastest way in terms of performance (e.g. because the .Text property makes a copy of...