Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using setting file

Posted on 2008-10-24
1
Medium Priority
?
251 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 70

Accepted Solution

by:
Éric Moreau earned 1500 total points
ID: 22795150
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
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!
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

824 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