How can I have my program modify itself?
Example:
Size = 1mb ..Run program once.. size = ++1mb
On Second Run, check if itself is 1mb
Or something of the sort :S.
I need to be able to check if my program has ever been ran before..
So.. Is there any way to tell if it's ever been ran on that particular machine without making a text file or extra files?
My Idea was to make it modify itself and then check if it is modified. If so then it has been ran already. Or maybe have it update it's own resources internally and on the second run, check if that resource changed?
Any Ideas?