Solved

Using setting file

Posted on 2008-10-24
1
242 Views
Last Modified: 2012-05-05
Hi expert!

Im  going from VB6 to  C# 2008. I have project with will use Windows Form for about 100 users. Every of this user will have connection to database and I need to save connection string somewhere.  In VB6 I save this info in text file in directory where is EXE. I need when some data to connection string are changed to replace this file in all 100 PC in customers and they to work with new connection string. SO I cant use exe.config file, because in it will have other information that is custom depend and when I replace this file I will loose this custom depend information.
 So question is:
   1. I want to work in new lay in VS2008, I add new separate setting file and want to use it. Question here is:
      - can you provide me with simple code that save and read string to this new setting file?
    - Where is this file on HDD ? Can I replace it with Windows Explorer with other setting file (with same format, but with different data?)


 2. If I decide to use old lay (to create .txt file in .exe directory) will Vista allow this?
0
Comment
Question by:dvplayltd
1 Comment
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
Comment Utility
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now