Last post Jan 28, 2011 03:33 AM by skin256
Jan 27, 2011 06:39 PM|skin256|LINK
I have a .dat file which I was given to use for a test application. I would like to distribute this file with my library. How can I do this without needing to tell them copy this here to this folder etc.
Thanks in advance.
Jan 27, 2011 07:20 PM|skin256|LINK
I believe this page helped solve my question.
Jan 28, 2011 01:52 AM|skin256|LINK
Ok I lied.
I added a file named File1.dat to my resources within my library. Now what I need to do is pass to a method the path to the file (File1.dat) so that it can read from it. How can I accomplish this.
Jan 28, 2011 03:33 AM|skin256|LINK
One more post as a solution doesn't hurt and neither does a break a little time to think.
My previous post where I asked for a path was a knee jerk reaction because obviously there is no path once it is managed by resource manager.
What I ended up doing was reading the dat file back out into a byte which is what it was stored as anyways within ResourceManager. I then just used a memorystream in place of a filestream as needed via overloaded methods.