K
Kirk
Hello,
I am trying to find a VB.NET method that will allow me to save and read
an application's settings in a separate file located on any drive,
any folder. I have found a couple of methods for doing this, but they
are (in my opinion) more complicated than I require.
I found a method that uses IsolatedStorageFile and
IsolatedStorageFileStream, which works correctly. That is, it stores
the settings in XML format to a file located here: "C:\Documents and
Settings\userid\Local Settings\Application Data\IsolatedStorage".
While this method works, the Isolated Storage file does not allow you
to specify a file location other than this folder. As I mentioned, I
need to be able to specify a file location elsewhere (even on another
drive).
There HAS to be a method to save simple settings & retrieve them
without loading the entire file, then searching through all of it for
my one setting. When I say simple settings, I mean "File1=text.txt,
Color=234, FileDL = True".
I have tried several methods and they are all too complicated to
mention here. I would GREATLY appreciate any suggestions of how to do
this simply.
Thank you.
Reference material:
http://msdn.microsoft.com/msdnmag/issues/05/04/AdvancedBasics/default.aspx
I am trying to find a VB.NET method that will allow me to save and read
an application's settings in a separate file located on any drive,
any folder. I have found a couple of methods for doing this, but they
are (in my opinion) more complicated than I require.
I found a method that uses IsolatedStorageFile and
IsolatedStorageFileStream, which works correctly. That is, it stores
the settings in XML format to a file located here: "C:\Documents and
Settings\userid\Local Settings\Application Data\IsolatedStorage".
While this method works, the Isolated Storage file does not allow you
to specify a file location other than this folder. As I mentioned, I
need to be able to specify a file location elsewhere (even on another
drive).
There HAS to be a method to save simple settings & retrieve them
without loading the entire file, then searching through all of it for
my one setting. When I say simple settings, I mean "File1=text.txt,
Color=234, FileDL = True".
I have tried several methods and they are all too complicated to
mention here. I would GREATLY appreciate any suggestions of how to do
this simply.
Thank you.
Reference material:
http://msdn.microsoft.com/msdnmag/issues/05/04/AdvancedBasics/default.aspx