Access internal file VB.NET

I added a text file to a testapp's solution and I want to read said file. I don't remember how to do this, I know it has to do with reflections but I need a push in the right direction.

Answers


If you add the text file to a .ResX file, you can have all the benefits (dynamic updating, for instance) AND not need to worry about interacting with an actual file. VB will automatically create a class to access the file - suppose you have Resources.resx. You can access it with My.Resources.MyFile - it will return a string.


Need Your Help

Mesh plot threshold in MatLab

matlab image-processing mesh

I am using an algorithm to determine a threshold for image analysis of nuclei in MATLAB. This algorithm measures all the pixel intensities within a nucleus and calculates a value that is used as a ...

Python retrieve RUID?

python linux python-2.6

I am using a version of python prior to 2.7 on linux and was wondering how to retrieve the RUID?