Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shared constants
Message
 
À
14/08/2005 15:33:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01040828
Message ID:
01040839
Vues:
20
This message has been marked as a message which has helped to the initial question of the thread.
>For a start, I was already considering a plain text file (and I assume the configuration settings are more appropriate for this purpose); but does .NET use the concept of a "default directory"? That is, can I specify a filename without the full path?
>
>Or should I store configuration files in some special .NET directory?

The configuration file lives in the same folder as the executable and takes its name (i.e. myapp.exe.config).

The only downside is that the framework doesn't provide a mechanism to write back to the file (which I find stupid, to say the least). Rick Strahl has a class that takes care of this in his web site, though.

I use a configuration file in an app that I'm working on, but I still like ini files much better (they're easier to look at, imo).

Alex
Low-carb diet not working? Try the Low-food diet instead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform