Re: Saving Text File in registry Key
- From: "Shariq Khan" <shariq@xxxxxxxxxxxxxx>
- Date: Fri, 6 May 2005 15:05:18 -0400
I would read the text as string, convert it to byte array using
System.Text.Encoding.Default.GetBytes() method and use the SetValue method
of the Microsoft.Win32.RegistryKey object to save it to the registry.
To read the data, use the System.Text.Encoding.Default.GetString() method.
See: http://msdn2.microsoft.com/library/ds4kkd55(en-us,vs.80).aspx,
http://msdn2.microsoft.com/library/744y86tc(en-us,vs.80).aspx and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfmicrosoftwin32registrykeyclasssetvaluetopic.asp
Shariq
shariq@xxxxxxxxxxxxxx
"Husam" <Husam@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0290DE07-C569-4501-BEC2-18DBEE222DF0@xxxxxxxxxxxxxxxx
> Hi EveryBody:
>
> Is there any way to save my text file in Registry Key instaed of saving it
> in Drive C: or any other drive drive ?
>
> any help will be appreciated
>
> regard's
>
> Husam
.
- References:
- Saving Text File in registry Key
- From: Husam
- Saving Text File in registry Key
- Prev by Date: Re: Option strict require more casting?
- Next by Date: Re: writing to a text file
- Previous by thread: Re: Saving Text File in registry Key
- Next by thread: Re: Saving Text File in registry Key
- Index(es):
Relevant Pages
|
Loading