How to store the data of a program without using registry?

Because I don't want the users change the registry and the program settings...

Are there any other ways that can prevent the users from changing the settings?

The only thing that comes to mind is a using USB key to protect your program settings...What are you writing that requires that kind of security?

Store the data in a hidden file or if *nix a read-only file. You could also use an encrypted file. There is nothing that will be 100% tamper-proof.

How to store the data of a program without using registry?

Because I don't want the users change the registry and the program settings...

Are there any other ways that can prevent the users from changing the settings?

Don't open the registry?

What makes you think you need to store data in the registry? That's not what it's for.

The only thing that comes to mind is a using USB key to protect your program settings...What are you writing that requires that kind of security?

em....What is a USB key??

By the way, how do those trial version programs record the number of times you have launched them, the remaining days of trial, etc.?? Surely there are other ways of storing those information, but what are they??

Thx~:)

Why dont you create a simple text file. Put what ever data you want to put in that file.
After that you can use something like the chmod command

chmod only on Unix machines.....?

ok, thx:)~I will take a look at that!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.