Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to remove from ini-file using API

Status
Not open for further replies.

Nifrabar

Programmer
Mar 16, 2003
1,343
NL
Hi!
faq184-2916 learns how to read and write using
API-calls
Basicly this is what is in the ini file:
[MySection]
Mykey=Key1Value
[MySection2]
Mykey2=Key2Value

For programmaticly doing maintanance I need to remove a full section from the file.
Is there a API call for that or do I have to manipulate the ini-file as text-file.
-Bart
 
Mike,
Thanks.
I've been afraid it works out that way.
So I have to write some code to remove all lines from the file starting with [MySection] until a '[' has found or eof() =.t.

-Bart
 
Mike,
Thanks again.
That function was quit unknown to me!
-Bart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top