PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework What si the best way to store a variable value between program shutdowns

Reply

What si the best way to store a variable value between program shutdowns

 
Thread Tools Rate Thread
Old 25-04-2005, 09:29 PM   #1
James L
Guest
 
Posts: n/a
Default What si the best way to store a variable value between program shutdowns


I need to store a user entered value such that I still have it after
shutting down the program and running it again. In my old eVb version
I stored the value in a text file and just read it out again on startup
of the program. Is there a better way in VB.NET?

James

  Reply With Quote
Old 25-04-2005, 09:32 PM   #2
Paul G. Tobey [eMVP]
Guest
 
Posts: n/a
Default Re: What si the best way to store a variable value between program shutdowns

There is no 'best'. Registry, XML file, plain binary or text file all come
to mind, probably in that order.

Paul T.

"James L" <1of04@earthlink.net> wrote in message
news:1114460986.212195.190140@l41g2000cwc.googlegroups.com...
>I need to store a user entered value such that I still have it after
> shutting down the program and running it again. In my old eVb version
> I stored the value in a text file and just read it out again on startup
> of the program. Is there a better way in VB.NET?
>
> James
>



  Reply With Quote
Old 26-04-2005, 12:16 AM   #3
JamesL
Guest
 
Posts: n/a
Default Re: What si the best way to store a variable value between program shutdowns

Then I guess in the category of "If it aint broke don't fix it" i will stay
with the text file since I have that all worked out and funcitonal already
anyhow.

James


"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
wrote in message news:uq$MwXdSFHA.3544@TK2MSFTNGP12.phx.gbl...
> There is no 'best'. Registry, XML file, plain binary or text file all
> come to mind, probably in that order.
>
> Paul T.
>
> "James L" <1of04@earthlink.net> wrote in message
> news:1114460986.212195.190140@l41g2000cwc.googlegroups.com...
>>I need to store a user entered value such that I still have it after
>> shutting down the program and running it again. In my old eVb version
>> I stored the value in a text file and just read it out again on startup
>> of the program. Is there a better way in VB.NET?
>>
>> James
>>

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off