PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Can I write to an embedded resource text file

Reply

Can I write to an embedded resource text file

 
Thread Tools Rate Thread
Old 26-04-2005, 12:54 AM   #1
JamesL
Guest
 
Posts: n/a
Default Can I write to an embedded resource text file


If I include a text file as an embedded resource, can I write new data to
the file and will that data be saved between shutdown and startup?

If so, what tools should I focus my attention on for writing to the file?

If not, can I copy the embedded file to a directory on the device and write
to it there? I have been trying the system.io.file.copy function but have
not figure how to identify the embedded file as the item to copy.

James


  Reply With Quote
Old 26-04-2005, 01:28 AM   #2
Alex Feinman [MVP]
Guest
 
Posts: n/a
Default Re: Can I write to an embedded resource text file

No

--
Alex Feinman
---
Visit http://www.opennetcf.org
"JamesL" <forgeddaboudit@spamblock.duh> wrote in message
news:arfbe.867$Oz2.168@newsread3.news.pas.earthlink.net...
> If I include a text file as an embedded resource, can I write new data to
> the file and will that data be saved between shutdown and startup?
>
> If so, what tools should I focus my attention on for writing to the file?
>
> If not, can I copy the embedded file to a directory on the device and
> write to it there? I have been trying the system.io.file.copy function
> but have not figure how to identify the embedded file as the item to copy.
>
> James
>


  Reply With Quote
Old 26-04-2005, 02:31 AM   #3
JamesL
Guest
 
Posts: n/a
Default Re: Can I write to an embedded resource text file

OK,

No I can't write to the file, how about copying the file to the device file
system, is that a no also?

James


"Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message
news:%234$$ibfSFHA.1176@TK2MSFTNGP12.phx.gbl...
> No
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "JamesL" <forgeddaboudit@spamblock.duh> wrote in message
> news:arfbe.867$Oz2.168@newsread3.news.pas.earthlink.net...
>> If I include a text file as an embedded resource, can I write new data to
>> the file and will that data be saved between shutdown and startup?
>>
>> If so, what tools should I focus my attention on for writing to the file?
>>
>> If not, can I copy the embedded file to a directory on the device and
>> write to it there? I have been trying the system.io.file.copy function
>> but have not figure how to identify the embedded file as the item to
>> copy.
>>
>> James
>>

>



  Reply With Quote
Old 26-04-2005, 02:34 AM   #4
Guest
 
Posts: n/a
Default Re: Can I write to an embedded resource text file

That can be done. Extract it using the ManifestResourceStream and write it
out. There are examples for doing this with a DLL in the archives - by Alex
as well if memory serves.

-Chris

"JamesL" <forgeddaboudit@spamblock.duh> wrote in message
news:HRgbe.13877$An2.9816@newsread2.news.pas.earthlink.net...
> OK,
>
> No I can't write to the file, how about copying the file to the device
> file system, is that a no also?
>
> James
>
>
> "Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message
> news:%234$$ibfSFHA.1176@TK2MSFTNGP12.phx.gbl...
>> No
>>
>> --
>> Alex Feinman
>> ---
>> Visit http://www.opennetcf.org
>> "JamesL" <forgeddaboudit@spamblock.duh> wrote in message
>> news:arfbe.867$Oz2.168@newsread3.news.pas.earthlink.net...
>>> If I include a text file as an embedded resource, can I write new data
>>> to the file and will that data be saved between shutdown and startup?
>>>
>>> If so, what tools should I focus my attention on for writing to the
>>> file?
>>>
>>> If not, can I copy the embedded file to a directory on the device and
>>> write to it there? I have been trying the system.io.file.copy function
>>> but have not figure how to identify the embedded file as the item to
>>> copy.
>>>
>>> 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