Alright, this is the last part of my program but I can't quite get it. Basically, I want to remove a line from a file. I have no clue where to start. Let's say my file is as follows

Code:
Jelly
Pie
Apple Pie
Delicious..
RoflCopter
And let's say I want to remove line 3. I would want it to be

Code:
Jelly
Pie
Delicious..
RoflCopter
Thanks for any help. Btw, this is located in a txt file.