if i create a license code how can i put that in a file that is code

licencode1 = bjorn
licencode2 = test
licencode3 = bjorn

like the user have the licenscode2

so if thy start the program thy have to enter the code
put i thy restart the program the window will popup again
but i want i ownely 1 time if thy have insert the code