PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Can I write to an embedded resource text file
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Can I write to an embedded resource text file
![]() |
Can I write to an embedded resource text file |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 >> > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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 >>> >> > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

