Compile time text import

  • Thread starter Thread starter amccool
  • Start date Start date
A

amccool

Hi,

I'm looking for something to read a text file into a string at compile
time. I swear I've seen something along these lines.

TIA,
Alex
 
It seems to me like you need an embedded resurce. Add the file to the
solution and set it's build action to embedded resource.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Back
Top