Re: Saving Text File in registry Key



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


.



Relevant Pages

  • Re: Split data to 2 new fields
    ... It concatenates the elements of an array into a ... > string. ... Prev by Date: ...
    (microsoft.public.access.gettingstarted)
  • Re: downloadable files
    ... a string is put into ... fh...not an entire array of area information...which when printed looks ... like tons of numbers seperated by comma's. ... Prev by Date: ...
    (alt.php)
  • Re: Newbie:Storing .NET datatypes in disconnected ADO.NET tables
    ... Could it have columns as array of simple ... types like string, etc.? ... Prev by Date: ...
    (microsoft.public.dotnet.framework.adonet)
  • last number array from string
    ... I have a address string with ID numbers at the end and want ... to be able to identify just the array at the end which could be any number in ... as I want to use the number for a lookup, please can anyone help with a ... Prev by Date: ...
    (microsoft.public.excel.worksheet.functions)
  • Help in French|Spanish|German translation.
    ... I am also an author of User-defined string functions. ... WORDTRANEX (cSearched, cArExpressionSought | cExpressionSough, ... each string of the array is searched ... If the parameter nArStartOccurrence is -1 or omitted, the replacement starts ...
    (microsoft.public.fox.helpwanted)

Loading