Results 1 to 3 of 3

Thread: Deleting Profiles from .ini

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2002
    Posts
    54

    Deleting Profiles from .ini

    I am writing profiles to a .ini file, no problem using API's.

    How can I delete a profile? All the API's seem to do is either Write or Get.

    Thanks.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Deleting Profiles from .ini

    An .InI file is nothing more than a formatting text file so IMO the least painful way would be to read your .InI file into a textbox, remove what you don't want, then write the contents of the textbox back to your .InI file.

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Deleting Profiles from .ini

    If you write a profile with a null key the entire section is deleted.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

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