3
Answers

Get Resources with string

Salih Teamsah

Salih Teamsah

11y
1.1k
1
Hi,

I have a lot of txt files in Resources folder. One of them is corner.txt. I can access this file via this code snippet:

Properties.Resources.corner

I keep file names in string variables. For example:

string fileName = "corner.txt";

I want to access this file via:

Properties.Resources.fileName

Is this possible? How can I access?
Answers (3)