PC Review


Reply
Thread Tools Rate Thread

Application.Config and Array Values?

 
 
dm3281
Guest
Posts: n/a
 
      17th Jun 2008
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.


 
Reply With Quote
 
 
 
 
Mr. Arnold
Guest
Posts: n/a
 
      17th Jun 2008

"dm3281" <(E-Mail Removed)> wrote in message
news:BDD3EA1C-0F24-4ABB-AB63-(E-Mail Removed)...
> 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...gSections.aspx

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modify values for WCF config in app.config Alhambra Eidos Desarrollo Microsoft C# .NET 0 23rd Sep 2008 09:25 AM
Array: Counting multiple values within array Trilux_nogo Microsoft Excel Worksheet Functions 4 16th Apr 2007 03:12 AM
search an array for values contained in another array =?Utf-8?B?Q2hlZXItUGhpbC1seQ==?= Microsoft Excel Programming 0 12th Apr 2007 09:44 PM
Re: Config values or Application values - which is better/faster? S. Justin Gengo Microsoft ASP .NET 2 20th Aug 2003 05:08 PM
Re: Config values or Application values - which is better/faster? Kevin Spencer Microsoft ASP .NET 0 20th Aug 2003 04:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:45 AM.