V
Vicky via DotNetMonster.com
Please help to put directory path to app.config file!
//DirectoryInfo di = new DirectoryInfo("C:\\Vicky Development\\FundExplorer\
\Index\\Copy of IntlIndex");
//string dipath = @"C:\Vicky Development\FundExplorer\Index\Copy of
IntlIndex";
//DirectoryInfo di = new DirectoryInfo(dipath);
System.Configuration.AppSettingsReader appReader =
new System.Configuration.AppSettingsReader();
string diPath = (string)appReader.GetValue(
"DirectoryPath",typeof(string));
DirectoryInfo di = new DirectoryInfo(diPath);
// Get a reference to each file in that directory.
FileInfo[] fiArr = di.GetFiles();
//DirectoryInfo di = new DirectoryInfo("C:\\Vicky Development\\FundExplorer\
\Index\\Copy of IntlIndex");
//string dipath = @"C:\Vicky Development\FundExplorer\Index\Copy of
IntlIndex";
//DirectoryInfo di = new DirectoryInfo(dipath);
System.Configuration.AppSettingsReader appReader =
new System.Configuration.AppSettingsReader();
string diPath = (string)appReader.GetValue(
"DirectoryPath",typeof(string));
DirectoryInfo di = new DirectoryInfo(diPath);
// Get a reference to each file in that directory.
FileInfo[] fiArr = di.GetFiles();