I\'m looking for a small code snippet that will find a line in file and remove that line (not content but line) but could not find. So for example I have in a file following
You want to do something like the following:
(I won't write the actual code, since this looks like homework, but feel free to post other questions on specific bits that you have trouble with)