Solved

Using setting file

Posted on 2008-10-24
1
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 70

Accepted Solution

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

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
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
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

710 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