Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get File From an Assembly

Tags:

c#

I want to read a file path from the following structure

The Structure is like : AssemblyName -> MyFiles (Folder) -> Text.txt

Here I want to get the path of the Text.txt. Please help

like image 362
user1238374 Avatar asked Feb 28 '12 17:02

user1238374


1 Answers

I think what you're looking for is a file embedded in the assembly. Check out this question. The first answer explains how to set up an embedded file, as well as how to get it from code.

like image 140
Eric Andres Avatar answered Sep 30 '22 13:09

Eric Andres