Thread: please help me

  1. #1
    Registered User
    Join Date
    Aug 2001

    please help me

    How to delete only one line of a *.txt file????

    e.g. "dictionary":

    Boston - city in USA
    California - state in USA
    dog - an animal
    cat - also an animal

    and now I want to delete "California - state in USA"!!!

    How can I do it?

    and another question

    how can I load only one line of a *.txt file:


    first load:

    Boston - city in Usa


    second load

    California ........

    but withou deleting the line before....???

    Thanx in advance

    I use Borland 5.02

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    read file into memory. Make changes required. write file out again to media.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :-

Popular pages Recent additions subscribe to a feed