Application.Config and Array Values?

  • Thread starter Thread starter dm3281
  • Start date Start date
D

dm3281

Hello, I am in the process of writing a service using C# and need to store a
list of customer numbers within the application.config. I can have over 200
customer numbers.

My service program will scan specific foldres based on the customer number.

How can I store this information in the application.config file?

I was trying to avoid having one value that used a comma-separated list. Or
is there a way to have a multi-line?

I need something like

G100BC
G110BC
G231BC
G342BC
G465BC
G778BC
G893BC
....
G999BC

Any help or guidance would be appreciated.
 
dm3281 said:
Hello, I am in the process of writing a service using C# and need to store
a list of customer numbers within the application.config. I can have over
200 customer numbers.

My service program will scan specific foldres based on the customer
number.

How can I store this information in the application.config file?

I was trying to avoid having one value that used a comma-separated list.
Or is there a way to have a multi-line?

I need something like

G100BC
G110BC
G231BC
G342BC
G465BC
G778BC
G893BC
...
G999BC

Any help or guidance would be appreciated.

You could also use a hash table as opposed to an array.

http://www.codeproject.com/KB/aspnet/ConfigSections.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top