Indra R

Indra R

  • NA
  • 8
  • 4.9k

How to read xml files from App.config file path?

Sep 12 2013 6:34 AM
I have been on working windows console application to import xml data into database.
I am new to console applications, 
I have a task i.e i want to import xml data from folders(which are created and saved xml files ex:c:\Projects\XMLfolder\folder\abc.xml, c:\Projects\XMLfolder\folder1\xyz.xml,) 
for this i don't want to hard code, the file path for this just add key/value in the app.config file. Based on file path how to read xml files one by one(if exist file folder) if not exist xml file in current folder go next folder read the file if exist, after completion of reading file in a folder file need to move into another folder based on path mentioned in app.config.  
How would i achieve this?

Answers (5)