Oct-30-2020, 10:46 AM
(Oct-30-2020, 10:24 AM)perfringo Wrote:(Oct-30-2020, 05:39 AM)JellyCreeper6 Wrote: I want to delete lines from a string that contains a certain keyword.
How do I do this?
You can't do that. Strings are immutable so you cant delete lines. This does not mean that you can't achieve desired result but it will not be 'deleting lines from string'. It will be either printing selected parts from string or creating new string. In code aboves
have not changed and no lines are deleted from string.
Well, creating a new string is what I meant then, my bad
