Reading and writing from and to ini files 
Author Message
 Reading and writing from and to ini files

In Vb6 I could use the Win 32 API GetPrivateProfileString and
WritePrivateProfileString to read from and write to a particular ini file.
(myapp.ini)
What gets me the equivalent functionality in Vb.Net are there any specific
functions that do the same in managed code?

In Vb6 I did a lot of writing values to the registry using API functions to
write to the HKEY_LOCAL_MACHINE. I am under the impression that the
preferred
technique for managed code is to write to ini files (as I think the code
would eventually be more portable, whenever that becomes more readely
available)
so I think  using Ini Files may be  a better bet than using the registry
(which is after all limited to Windows OSs)

Any insight as well as tips would be most appreciated. I am at the start of
a fair size project and I would like to use the most appropriate techniques.

Regards to all ,

Bob



Mon, 07 Nov 2005 09:19:59 GMT  
 Reading and writing from and to ini files
Hi!
You should not use either registry (Win platform) nor INI files (not
structured),
instead configuration should place to XML file (structured and platform
independent)

Here is good article to start with:
http://www.devx.com/dotnet/Article/7008/0/page/1

Cheers,
Aikka


Quote:
> In Vb6 I could use the Win 32 API GetPrivateProfileString and
> WritePrivateProfileString to read from and write to a particular ini file.
> (myapp.ini)
> What gets me the equivalent functionality in Vb.Net are there any specific
> functions that do the same in managed code?

> In Vb6 I did a lot of writing values to the registry using API functions
to
> write to the HKEY_LOCAL_MACHINE. I am under the impression that the
> preferred
> technique for managed code is to write to ini files (as I think the code
> would eventually be more portable, whenever that becomes more readely
> available)
> so I think  using Ini Files may be  a better bet than using the registry
> (which is after all limited to Windows OSs)

> Any insight as well as tips would be most appreciated. I am at the start
of
> a fair size project and I would like to use the most appropriate
techniques.

> Regards to all ,

> Bob



Mon, 07 Nov 2005 16:14:29 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Read/Write INI Files w/Access 7.0

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

3. read/write an .ini file

4. Reading and writing to an INI file?

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

6. Read and Write to INI files

7. Reading/writing to an INI file

8. Reading / Writing an INI file

9. Reading / Writing an INI file

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

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

12. Read/Write .INI File Routine?

 

 
Powered by phpBB® Forum Software