views:

183

answers:

2

I want to embed a dictionary.txt which my program uses a streamreader object to parse. I tried to add it to resources but then the streamreader had an error. How can it be properly done?

Thanks

A: 

First you need to embed the file in your assembly (add to project and goto Properties for the file, and set Build Action to "Embedded Resource").

Then you need to access and read it's contents using GetManifestResourceStream():

Getting an embedded resource file out of an assembly

This article might be of interest: Microsoft .NET Framework Resource Basics

Mitch Wheat
A: 

hay every body i have twitter add me superpopcorn1

colin