I am trying to use the following code to read a file name from the App.Config tab in the express version:
public string GetDataFile()
{
string sFile = ConfigurationSettings.AppSettings["sFile"];
MessageBox.Show(sFile);
return sFile;
}
When I output the string in the message box it returns blank. What am I doing wrong?
Thanks.
public string GetDataFile()
{
string sFile = ConfigurationSettings.AppSettings["sFile"];
MessageBox.Show(sFile);
return sFile;
}
When I output the string in the message box it returns blank. What am I doing wrong?
Thanks.