DimkaNewtown Posted February 10, 2003 Posted February 10, 2003 Okay, I have an XML file marked as an embedded resource in my project. I can access the data using the following code: DataSet dsLocal = new DataSet(); dsLocal.ReadXml( Assembly.GetExecutingAssembly().GetManifestResourceStream("UMIShip.ShipAPIPackages.xml")); ShipAPIPackages = dsLocal.Tables[0]; But now, let's say I want to change something and make it persistent for the next time I run my application. I tried writing the stream back to the assembly but apparently it's read-only. :confused: Little help please... (MSDN isn't helping) :o Quote
*Gurus* divil Posted February 11, 2003 *Gurus* Posted February 11, 2003 You can't modify your executable at runtime like this. Embedded resources are read-only. You should consider using an external file instead. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
DimkaNewtown Posted February 11, 2003 Author Posted February 11, 2003 I was afraid you'd say that. Thanks for clearing this up though! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.