Hey, I'm trying to make a program where you have the file, which is a config.xml.
I'm basically going to have the user type in numbers into a textbox, and when they hit a button, it will search for the first few characters in the file, delete the whole line, and replace it with text that I have plus the user input.
I have found a bunch of codes on replacing specified text and strings in a file, but I can't find anything that can find just the first few letters / characters, delete the whole line, and then help me carry on.
If you have any helpful codes, I'd be very appreciative thanks.