troubleshooting Question

How to use a text file as a program configuration file

Avatar of MikeCombe
MikeCombeFlag for United States of America asked on
.NET ProgrammingVisual Basic.NET
4 Comments1 Solution223 ViewsLast Modified:
Greetings,

Using VB.net, VB6, Microsoft Visual Studio

I want to develop a pc-based software program that uses a text file to store/load configurations for the software program. I'm thinking that I can write data to the text file on each line using a delimiter to separate the fields. At the carriage return it would create a new line. Each line would act similar to a single row in a database field. The software program would save the various data to the text file, or open and read the text file to "load" the data back into system memory, arrays, or whatever.

I cannot use a database for this project.

Here's my questions:
1. Does my approach sound like I'm on track?
2. Can I scan "lines" in a text file to grab particular data and then "load" that into system memory, arrays, etc.?

Thanks for any tips you can offer.

---- Mike
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer 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 1 Answer 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