Lire fichier exe.config structure complexe
Bonjour à tous voilà je cherche de quoi lire un fichier nomduneapplication.exe.config ce fichier est fait comme un fichier xml mais rien a faire ne n'arrive pas récupérer les infos souhaitées voici sa structure :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup ..... />
</sectionGroup>
</configSections>
<system.diagnostics>
<sources>
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog"/>
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information" />
</switches>
<sharedListeners>
<add name="FileLog" ...>
</sharedListeners>
</system.diagnostics>
<userSettings>
<BackupDatasConfig.Configuration>
<setting name="Path" serializeAs="String">
<value>c:\</value>
</setting>
<setting name="AutoCheck" serializeAs="String">
<value>0</value>
</setting>
<setting name="CloseCheck" serializeAs="String">
<value>0</value>
</setting>
</BackupDatasConfig.Configuration>
</userSettings>
</configuration> |
En rouge c'est ce que je souhaite récupérer comme info...
Merci par avance si vous pouvez m'aiguiller car la je trouve pas