I need to store some information in a file and retrieve it.
I have a small program that allows users to choose which database in SQL to open. I need to store the connection string fields. I was planning originally to store them in the registry, but thought it might be better to store them in an INI file instead. That way the user can delete the file and start over if there is a problem.
I need to store the following entries for 2 or more databases:
User ID
Password (I am useing a very basic encryption method)
Initial Catalog
Data Source
Any ideas?
PS: The next step for me is to have this app close after another app is closed.
Thanks
Ron.
I have a small program that allows users to choose which database in SQL to open. I need to store the connection string fields. I was planning originally to store them in the registry, but thought it might be better to store them in an INI file instead. That way the user can delete the file and start over if there is a problem.
I need to store the following entries for 2 or more databases:
User ID
Password (I am useing a very basic encryption method)
Initial Catalog
Data Source
Any ideas?
PS: The next step for me is to have this app close after another app is closed.
Thanks
Ron.