Salih Teamsah

Salih Teamsah

  • NA
  • 6
  • 2.7k

Get Resources with string

Jul 24 2013 2:44 AM
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)