im using borland builder c++
i got a txt file,each line has got a username and password separated
with a space.i read these and insert them into a listbox
i select an item from listbox and take that string as it is
the problem is how can i delete specific selected listbox item(username
password) from file
Delete line from txt file
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Kapil Deo MalhotraRank #2,120 · 672 reputationPosted Jun 6, 2010, 6:21 PM EDT
Try the below link, it will give you an idea how to delete line
http://stackoverflow.com/questions/532217/efficient-way-to-delete-a-line-from-a-text-file