Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
5
Answers
configuration manager question
george senikos
16y
6.6k
1
Reply
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
namespace ConsoleApplication111
{
class Program
{
static void Main(string[] args)
{
//System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal);
//Console.WriteLine(config.Sections["Foo"]);
String foo = ConfigurationManager.AppSettings["Test"];
Console.WriteLine(foo);
}
}
}
?<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<appSettings>
<add key="Test" value="hello"/>
</appSettings>
</configuration>
I have been trying to read from the XML abd print to the screen but havent been able to do so can you help???
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
managing objects in callback
yesterday's time