In Java you can read a file embedded inside a JAR-file by using the following code:
String file = \"com/company/package/filename.txt\";
InputStream is = Clas
Once you've added the text file as a resource, and assigned a resourceName
to it, then:
Assembly assembly = Assembly.GetExecutingAssembly();
TextReader inputStream = new StreamReader(assembly.GetManifestResourceStream(resourceName));
string result = inputStream.ReadToEnd();
Note: this came from this posting