troubleshooting Question

ini file , create a key value pair where a key has multiple values

Avatar of brgdotnet
brgdotnetFlag for United States of America asked on
.NET Programming
4 Comments2 Solutions57 ViewsLast Modified:
I am creating an ini file and realize that there are sections. Example given below. Each section contains key value pairs. If I want to assign multiple values to a key, how do I do that? Below is simple ini file I created. If I just want all of the names assigned to one variable like "P1", can I do that? I figure that
when I read the .ini file I can parse out each value if it is comma delimited, but I don't know if their is a format for such a construct of multiple values assigned to a key? For example should each value be seperated by a command and then entire string surrounded by curly braces?

ini file 1:
[Parent]

Also I don't see a section on experts exchange for ini files, so I chose .NET instead.
P1="Smith"
P2="Jones"
P3="Baker"

proposed ini file:
P1={"Smith","Jones","Baker"}
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros