Compile-Time Configuration?

  • Thread starter Thread starter acoots
  • Start date Start date
A

acoots

I am writing a program which utilizes a set of data which will change
once per year. I would like to read this information from a file at
compile time and not have the file included thereafter, then recompile
it the next year with the file changed. From the perspective of the
users, I will be redistributing a new program each year.

Is this possible? Is there a better way of incorporating this data?
 
I am writing a program which utilizes a set of data which will change
once per year. I would like to read this information from a file at
compile time and not have the file included thereafter, then recompile
it the next year with the file changed. From the perspective of the
users, I will be redistributing a new program each year.

Is this possible? Is there a better way of incorporating this data?

Include it as an embedded resource, then load and process it at
runtime. The user won't see the file at all (unless they use reflector
or something similar).
 
Back
Top