I got a empty file following the ANSI encoding and I want to make a bookmark library(kinda useless, but it tests my knowledge of programming). At first there will be no links at all and there's a button that will lead to a form that prompts you for the name of the site and URL. Then it'll add it to the file. Then on the main form, it'll will pop up (without needing to restart program.)
Ex-Youtube
www.youtube.com

File- Youtube www.youtube.com


But then you also need the function of deleting them.
File- Google www.google.com
Youtube www.youtube.com (Delete this one)
Yahoo www.yahoo.com

File- Google www.google.com
Yahoo www.yahoo.com (fill in the blank line)

Now for the question, how would you do it? (lol, sorry for asking such a question, but I kinda depressed since I spent around 2 hours trying to figure it out.)