H
H
Hanry6542020-11-12 11:12:21
Node.js
Hanry654, 2020-11-12 11:12:21

How to set information about a .cfg file?

There is a config file, you need to set the information for it, for example, for which user it was created and so that when the file is completely overwritten, it remains and can then be read

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey P, 2020-11-12
@ruddy22

Based on your comment, I dare to offer this solution to the problem.
"Keep money in a savings bank..."
You need a database and 2 tablets in it. For example, user_config and user_config_backup. The "secret" + config is written in the tablets (you can also drag the file in binary form), but the user can delete data from user_config, but not from user_config_backup.
this is the solution for your requirement


then read it (even if the user completely deletes its contents inside)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question