I'm learning how to handle file input and output, and I have a quick question. Let's say I make a program with a 30 day trial on it. I'd make a file that says the date the program was made. I don't want that file to be edited by anybody, so I would put it in a place that is not so easy to find such as the windows folder. How would I go about doing that, however? I had something like:
but that generates an error. Anybody have any suggestions?Code:ofstream license("C:\Windows\license.txt");
Mornic Programm