|
-
Jan 2nd, 2002, 01:36 PM
#1
Thread Starter
Member
delete record from txt file
i will try to explain what i'm trying to do in more detail.....
let say i have some textboxes and i save the info enter into those textboxes to a txt file called ???.txt......when i view the info,which will appear inside the textboxes.....if i no longer want that record, i want to delete it using a command button.....
sorry about not being clear before.....
thankz everyone for your replys.......
-
Jan 2nd, 2002, 01:41 PM
#2
Junior Member
Ok. I'll write you some code... This will be my last post for tonight - time to go home!!! Back in 20 brother...
-
Jan 2nd, 2002, 01:42 PM
#3
wouldn't this be easier for you to do using ado and an access database?
-
Jan 2nd, 2002, 02:11 PM
#4
Junior Member
Ok, the zip file I have sent you is a vb project that allows you to move thru a text file containing names and email addresses. The names and email address is are displayed in text boxes - when you see the record you want to delete, just hit the delete button, and the record will be removed from the text file.
You should be able to follow the code to see how it works, and perhaps adapt it for your own needs.
Unzip these files into a temporary directory. I have full virus protection, so don't worry about viruses (no exe's in the zip file anyway)
BTW: A database MIGHT be a more elegant solution if your requirement is any more complex than the example I have shown in my example program.
Regards,
I'm off home - wish me luck as I battle through the frozen sub zero motorways of Britain!
Mark Wills
UK
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|