Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Using setting file

Posted on 2008-10-24
1
Medium Priority
?
250 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 1500 total points
ID: 22795150
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

721 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