Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

How to delete an ini file's section and its data in C#?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pucca - 02 Mar 2008 02:05 GMT
Hi, I'm using vs2005 and .net 2.0 for a windows C# applicaiton.  How can I
delete an ini file's section and its data in C#?  Is there a .net funciton I
can call?  Also, Is there a way to find out how many key & value entry under
a section in a ini file?  Thank you.
Signature

Thanks.

Fredo - 02 Mar 2008 19:15 GMT
I don't believe .NET has built-in code for dealing with ini files. You can
p/Invoke into the Windows API to deal with .INI files or you can write your
own (and I know there are libraries out there for .NET for doing it. Just
google "C# ini library" or something like that).

The .INI is about the most trivial file format out there, though. It
wouldn't be that hard to do everything you're talking about in your own
code.

> Hi, I'm using vs2005 and .net 2.0 for a windows C# applicaiton.  How can I
> delete an ini file's section and its data in C#?  Is there a .net funciton
> I
> can call?  Also, Is there a way to find out how many key & value entry
> under
> a section in a ini file?  Thank you.
Pucca - 03 Mar 2008 01:21 GMT
Thank you.
Signature

Thanks.

> I don't believe .NET has built-in code for dealing with ini files. You can
> p/Invoke into the Windows API to deal with .INI files or you can write your
[quoted text clipped - 11 lines]
> > under
> > a section in a ini file?  Thank you.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.