Results 1 to 4 of 4

Thread: delete record from txt file

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2001
    Posts
    39

    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.......

  2. #2
    Junior Member
    Join Date
    Jan 2002
    Location
    Shrewsbury, Shropshire, UK.
    Posts
    30
    Ok. I'll write you some code... This will be my last post for tonight - time to go home!!! Back in 20 brother...
    Ouch. My head hurts.

  3. #3
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    wouldn't this be easier for you to do using ado and an access database?

  4. #4
    Junior Member
    Join Date
    Jan 2002
    Location
    Shrewsbury, Shropshire, UK.
    Posts
    30
    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
    Ouch. My head hurts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width