Reading/writing to an INI file 
Author Message
 Reading/writing to an INI file

Hi Gang,
        How do you access an INI file under .net?  Is there some way
besides API calls - I can NOT find it in the framework

Charlie

--
73
KC2IXE

For the Children - RKBA!

"If you liked the war on {*filter*}, you're gonna love the war on guns."
-- anonymous TRT person



Mon, 27 Sep 2004 05:50:36 GMT  
 Reading/writing to an INI file
You should use XML files in .NET.

Regards,
Pieter Philippaerts
http://www.*-*-*.com/


Quote:
> Hi Gang,
> How do you access an INI file under .net?  Is there some way
> besides API calls - I can NOT find it in the framework

> Charlie

> --
> 73
> KC2IXE

> For the Children - RKBA!

> "If you liked the war on {*filter*}, you're gonna love the war on guns."
> -- anonymous TRT person



Mon, 27 Sep 2004 06:06:29 GMT  
 Reading/writing to an INI file
On Thu, 11 Apr 2002 00:06:29 +0200, "Pieter Philippaerts"

Quote:

>You should use XML files in .NET.

<snip>

Except that the INI file is used by another program - Yeah Backwards
Compatibility!

The INI file that doesn't have to be BC was changed to XML the first
day <g>

Charlie

--
73
KC2IXE

For the Children - RKBA!

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
-- Benjamin Franklin



Mon, 27 Sep 2004 06:39:09 GMT  
 Reading/writing to an INI file
Charles,

Search google.com. I remember a post here a month or two ago by a guy that
wrote a .NET INI reader/writer app. He had a link to his website. It would
be exactly what you need.

--
Moving from VB6 to VB.NET?  It just got easier...
"The .NET Languages: A Quick Translation Guide"
www.bischofsystems.com/vbnet.asp


Quote:
> On Thu, 11 Apr 2002 00:06:29 +0200, "Pieter Philippaerts"

> >You should use XML files in .NET.
> <snip>

> Except that the INI file is used by another program - Yeah Backwards
> Compatibility!

> The INI file that doesn't have to be BC was changed to XML the first
> day <g>

> Charlie

> --
> 73
> KC2IXE

> For the Children - RKBA!

> "They that can give up essential liberty to obtain a little temporary

safety deserve neither liberty nor safety."

- Show quoted text -

Quote:
> -- Benjamin Franklin



Mon, 27 Sep 2004 07:11:07 GMT  
 Reading/writing to an INI file

Quote:
> Except that the INI file is used by another program - Yeah Backwards
> Compatibility!

If you _have_ to use INI files, you're either going to have to use the API
or implement it yourself using the System.IO classes. There's no native
support for INI files.

We have an INI reader/writer for VB.NET at
http://www.allapi.net/classlib/class.php?id=1 , however this class uses the
Win32 API so I'm not sure it's what you're looking for.

Regards,
Pieter Philippaerts
http://www.allapi.net/



Mon, 27 Sep 2004 07:49:41 GMT  
 Reading/writing to an INI file
On Wed, 10 Apr 2002 16:11:07 -0700, "Brian Bischof"

Quote:

>Charles,

>Search google.com. I remember a post here a month or two ago by a guy that
>wrote a .NET INI reader/writer app. He had a link to his website. It would
>be exactly what you need.

Started with google - didn't see it

Charlie

--
73
KC2IXE

For the Children - RKBA!

"I can call K9 "him" if I want. He's my dog. "
-- The Doctor



Mon, 27 Sep 2004 07:49:31 GMT  
 Reading/writing to an INI file
On Thu, 11 Apr 2002 01:49:41 +0200, "Pieter Philippaerts"
<snip> There's no native
Quote:
>support for INI files.

<snip>

Pieter,
OK, no problem - I thought I was missing something!  I have a working
VB6 class that translated over with no problems

I still can't figure out what's in the darned framework and language.
I didn't spend enough time in the beta, and boy is the framework's
curve steep

Charlie

--
73
KC2IXE

For the Children - RKBA!

"I can call K9 "him" if I want. He's my dog. "
-- The Doctor



Mon, 27 Sep 2004 07:52:07 GMT  
 Reading/writing to an INI file
Some time ago, I submitted a sample to www.gotdotnet.com . It comprises
two functions, GetConfigInfo and WriteconfigInfo, and a class are replacing
the former
GetPrivateProfileString and WritePrivateProfileString functions. No
Win32API.
The main difference is that all (INI) settings are now stored in an XML
file.
It can be downloaded straight at
http://www.*-*-*.com/
Hope this helps
Roland


Quote:
> Hi Gang,
> How do you access an INI file under .net?  Is there some way
> besides API calls - I can NOT find it in the framework

> Charlie

> --
> 73
> KC2IXE

> For the Children - RKBA!

> "If you liked the war on {*filter*}, you're gonna love the war on guns."
> -- anonymous TRT person



Mon, 27 Sep 2004 18:17:07 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. Reading/Writing to Private INI file.

2. Read/Write INI Files w/Access 7.0

3. Ini-file, read write and empty lines.

4. Reading and writing from and to ini files

5. read/write an .ini file

6. Reading and writing to an INI file?

7. Reading and Writing to .ini files - help please.

8. Read and Write to INI files

9. Reading / Writing an INI file

10. Reading / Writing an INI file

11. How to read and write an ini file with Qbasic 4.5

12. Reading/Writing to the Registry and .INI file???

 

 
Powered by phpBB® Forum Software