I want to build a custom config file other than a .txt file ..in order to retreive some information..
the user should not have acces to this file which is visible on dirapp and will not edit this or understand its content ...like a instalation file
I'm not sure how any of that relates to "installation" files. But if you want to avoid user editing you'll probably want to obfuscate the data (simple XOR with some pattern?) and if it has to be secure you'd want to use some sort of encryption. To tamper-proof it you'd use some sort of Public Key signature.