Thread: how to delete entry in a txt file?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User moonwalker's Avatar
    Join Date
    Jul 2002
    Posts
    282
    Originally posted by Salem
    You copy to a temp file all the lines you want to keep.
    You then delete the original, and rename the temp file
    wouldn't that be slow if the file is considerably big?
    How would you do it to make it faster ?

    Mmm, I wonder who can spot the non-obvious 'bug' in laasunde's answer.
    oh.. you mean the "/" to "\" ? I don't know if that would make a difference though... hmm
    Last edited by moonwalker; 07-16-2003 at 08:20 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 04:27 PM
  2. File transfer- the file sometimes not full transferred
    By shu_fei86 in forum C# Programming
    Replies: 13
    Last Post: 03-13-2009, 12:44 PM
  3. Inventory records
    By jsbeckton in forum C Programming
    Replies: 23
    Last Post: 06-28-2007, 04:14 AM
  4. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  5. Problem need help
    By Srpurdy in forum C++ Programming
    Replies: 1
    Last Post: 07-24-2002, 12:45 PM