"Robin Tucker" <id*************************@reallyidont.com> schrieb;
I'm a bit confused about where to put my program settings.
Firstly, I can choose (I suppose) between .ini, .xml or the registry.
Which one is best?
Personal preference.
If human-readability is important, use classic INI files.
If the file should be read easily by the machine, use XML files.
Storing and loading user preferences
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=userpreferences&lang=en>
Creating Your Own Dynamic Properties and Preserve Property Settings in
Visual Basic .NET
<URL:http://msdn.microsoft.com/library/en-us/dv_vstechart/html/vbtchcreateyourowndynamicpropertiespreservepropert ysettingsinvisualbasicnet.asp>
Secondly, *where* do I place any files I generate on a
per-user or per-application basis?
\\\
Dim s As String = _
Environment.GetFolderPath(Environment.SpecialFolde r.LocalApplicationData)
///
Where should I place application settings (such as the database connection
string).
Application configuriation files ("App.config").
..NET Framework Developer's Guide -- Configuration Files
<URL:http://msdn.microsoft.com/library/en-us/cpguide/html/cpconconfigurationfiles.asp>
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>