C
C#4mo ago
Kirieshka

How do I create my own file extension?

Help please. In short: I need to create my own file extension, for example levelData.ldat, and so that only the program can access this file (read and modify it), but not the user in any case
12 Replies
sibber
sibber4mo ago
well you just save it in with that extension
Angius
Angius4mo ago
If your program can access it, the user can access it Even if it's by reading bytes directly from RAM
Kirieshka
KirieshkaOP4mo ago
:(( Okay, thanks
Angius
Angius4mo ago
You can make it hard, but never impossible
jcotton42
jcotton424mo ago
@Kirieshka why do you want to restrict user access anyhow?
Pedro Gil Mora
Pedro Gil Mora4mo ago
You mean registrate the association of that extension to your program right?
jcotton42
jcotton424mo ago
@Kirieshka bump
Mayor McCheese
Mayor McCheese4mo ago
Anti cheat maybe?
this_is_pain
this_is_pain4mo ago
sure but you can't play with users and permissions on other people's pc the only way is encrypting
Mayor McCheese
Mayor McCheese4mo ago
On locally installed software and files encrypting is just a matter of user laziness or ignorance really to get around for the most part. At least as an isolated island If you've got an API to call to decrypt data you might as well just ship bytes instead for area files.
this_is_pain
this_is_pain4mo ago
i don't think so it would keep away a good part of the people trying because it wouldn't be a low effort process
Mayor McCheese
Mayor McCheese4mo ago
It's a divergence of audience problem, those interested in trying are also the ones with the abilities to do so.

Did you find this page helpful?