Solved

Using setting file

Posted on 2008-10-24
1
244 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
ID: 22795150
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 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

20 Experts available now in Live!

Get 1:1 Help Now