How to Set directory path for multiple files with given extension in app.config in c# -


i able set path of particular file given filename in app.config using:

<add key="filepath" value="\c:\users\public\pictures\sample pictures\abc.jpg"/> 

but when want set path "*.jpg" , i.e. retrieving multiple filenames jpg extension, facing problems in using wildcard character *.

how should give value in appsettings?

thanx !!!

when read value in, can't parse wildcard , perform multiple filename retrieval then?

<add key="filepath" value="\c:\users\public\pictures\sample pictures\*.jpg"/>  string path = configurationmanager.appsettings["filepath"].tostring(); if(path.getfilenamewithoutextension(path) == "*") {    //get multiple files } 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -