I'm pretty sure the two methods aren't equivalent. The first "cleans" the newlines.
(Although you can add a
c += '\n'; to revert that).
Anyway, I'm not sure I understand your question.
Last edited on
My question is just :
why bother with the read and so on if a simple += can do the whole thing ?
Catfish, your solution is even faster.
I cannot understand why I am not able to deal with regexes in the same string.
I open a new thread for it.