title: How to write code to run once and only once
body: <p>I'm looking for a way to write code such that when a program is first started up, this segment of code runs once and only once.  If the program is closed and started up again, the code will not run again.  It would only run again if the entire application was uninstalled and resinstalled from scratch.</p>
  
  <p>A config file or flag in a database is not a solution for this problem.</p>
  
  <p>I read something somewhere (which i can't seem to find) about some way to basically run something once and it could then essentially compile a variable into the binary to be used forever and ever.</p>
  
  <p>Thanks for any help I can get on this!</p>